mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [trival patch]disable warning in cpu_init for cpu hotplug
@ 2006-03-23  5:21 Shaohua Li
  2006-03-23  5:32 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Shaohua Li @ 2006-03-23  5:21 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton

The patch seems missed.
GFP_KERNEL isn't ok for runtime (cpu hotplug).

Signed-off-by: Shaohua Li<shaohua.li@intel.com>
---

 linux-2.6.15-root/arch/i386/kernel/cpu/common.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/i386/kernel/cpu/common.c~cpuhp arch/i386/kernel/cpu/common.c
--- linux-2.6.15/arch/i386/kernel/cpu/common.c~cpuhp	2006-03-14 12:13:43.000000000 +0800
+++ linux-2.6.15-root/arch/i386/kernel/cpu/common.c	2006-03-14 12:14:12.000000000 +0800
@@ -605,7 +605,7 @@ void __devinit cpu_init(void)
 		/* alloc_bootmem_pages panics on failure, so no check */
 		memset(gdt, 0, PAGE_SIZE);
 	} else {
-		gdt = (struct desc_struct *)get_zeroed_page(GFP_KERNEL);
+		gdt = (struct desc_struct *)get_zeroed_page(GFP_ATOMIC);
 		if (unlikely(!gdt)) {
 			printk(KERN_CRIT "CPU%d failed to allocate GDT\n", cpu);
 			for (;;)
_



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-23  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-23  5:21 [trival patch]disable warning in cpu_init for cpu hotplug Shaohua Li
2006-03-23  5:32 ` Andrew Morton
2006-03-23  6:19   ` Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®