]> err.no Git - linux-2.6/commit
[PATCH] x86: cpu_init(): avoid GFP_KERNEL allocation while atomic
authorShaohua Li <shaohua.li@intel.com>
Tue, 27 Jun 2006 09:53:43 +0000 (02:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:37 +0000 (17:32 -0700)
commitbd9e0b74f52dbac6241643fadca2393808b14c7a
treeaf2c479782edbeca009cf195401d82abb61b1ac7
parent28eba5bf9d4bf3ba4d58d985abf3a2903b7f2125
[PATCH] x86: cpu_init(): avoid GFP_KERNEL allocation while atomic

The patch fixes two issues:

1.  cpu_init is called with interrupt disabled.  Allocating gdt table
   there isn't good at runtime.

2. gdt table page cause memory leak in CPU hotplug case.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/cpu/common.c
arch/i386/kernel/smpboot.c