Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Len Brown
Date: Friday, February 1, 2008 - 3:55 pm

On Friday 01 February 2008 09:54, Ingo Molnar wrote:

This won't work as written -- for the ACPI code doesn't currently optimize
for the HIBERNATE && ! SUSPEND case, and so both code paths are under ACPI_SLEEP.

While some day there may be a justification to make that optimization,
this isn't the day, and this isn't the patch.

So Rafael and I talked about it and decided to go with the simpler
patch below -- which I'll push.

thanks,
-Len

---
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index da524fb..f2f36f8 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -423,23 +423,23 @@ static void __init pagetable_init(void)
 	paravirt_pagetable_setup_done(pgd_base);
 }
 
-#if defined(CONFIG_HIBERNATION) || defined(CONFIG_ACPI)
+#ifdef CONFIG_ACPI_SLEEP
 /*
- * Swap suspend & friends need this for resume because things like the intel-agp
+ * ACPI suspend needs this for resume, because things like the intel-agp
  * driver might have split up a kernel 4MB mapping.
  */
-char __nosavedata swsusp_pg_dir[PAGE_SIZE]
+char swsusp_pg_dir[PAGE_SIZE]
 	__attribute__ ((aligned(PAGE_SIZE)));
 
 static inline void save_pg_dir(void)
 {
 	memcpy(swsusp_pg_dir, swapper_pg_dir, PAGE_SIZE);
 }
-#else
+#else /* !CONFIG_ACPI_SLEEP */
 static inline void save_pg_dir(void)
 {
 }
-#endif
+#endif /* !CONFIG_ACPI_SLEEP */
 
 void zap_low_mappings(void)
 {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: make nx_enabled conditional on CONFIG_X86_PAE, Harvey Harrison, (Tue Jan 22, 2:00 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Wed Jan 23, 6:06 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 3:35 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 3:58 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 4:40 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 4:51 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 5:11 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 5:31 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Thu Jan 24, 5:46 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Eric W. Biederman, (Thu Jan 24, 7:16 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Eric W. Biederman, (Thu Jan 24, 7:56 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Thu Jan 24, 9:41 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Eric W. Biederman, (Fri Jan 25, 4:07 am)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Fri Jan 25, 3:02 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 8:25 am)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 10:02 am)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Mon Jan 28, 1:03 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 1:26 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 1:28 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Jeremy Fitzhardinge, (Mon Jan 28, 1:44 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 1:50 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 1:59 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Rafael J. Wysocki, (Mon Jan 28, 3:02 pm)
Re: [PATCH] x86: Construct 32 bit boot time page tables in ..., Len Brown, (Fri Feb 1, 3:55 pm)