powerpc/kgdb: use DEFINE_PER_CPU to allocate kgdb's thread_info
authorTiejun Chen <tiejun.chen@windriver.com>
Thu, 20 Jun 2013 10:28:29 +0000 (18:28 +0800)
committerScott Wood <scottwood@freescale.com>
Fri, 18 Oct 2013 23:38:10 +0000 (18:38 -0500)
commit8258e268c15a29c09d7c88d91a948bdf729433d8
tree6b2631e5ae07efcc976709cdfbd94f1462efeb6f
parent9863c28a2af90a56c088f5f6288d7f6d2c923c14
powerpc/kgdb: use DEFINE_PER_CPU to allocate kgdb's thread_info

Use DEFINE_PER_CPU to allocate thread_info statically instead of kmalloc().
This can avoid introducing more memory check codes.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
[scottwood@freescale.com: wrapped long line]
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/kgdb.c