]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a9f03e429edf5d98db8d3649e021c6623c92240
tree6b2631e5ae07efcc976709cdfbd94f1462efeb6f
parent060924ee3056555740194db9e33fcb418edf4972
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