smp/swsusp using cpu hotplug
Subsystems (3)
Hi!
against 2.6.12-rc1-mm1. pci.c hunk is probably not needed in -mm2.
Pavel
drivers/pci/pci.c +2 -0
@@ -376,11 +376,13 @@if (!pci_find_capability (dev,PCI_CAP_ID_PM ))return PCI_D0 ; +#if 0 if (platform_pci_choose_state) { ret =platform_pci_choose_state (dev, state);if (ret >=0 ) state = ret; } +#endif switch (state) {case 0 :return PCI_D0 ;case 3 :return PCI_D3hot;
kernel/power/Kconfig +1 -1
@@ -28,7 +28,7 @@ config SOFTWARE_SUSPEND bool "Software Suspend (EXPERIMENTAL)" - depends on EXPERIMENTAL && PM && SWAP + depends on EXPERIMENTAL && PM && SWAP && (HOTPLUG_CPU || !SMP) ---help--- Enable the possibility of suspending the machine. It doesn't need APM.
kernel/power/smp.c +32 -58
111 lines not on this page · raw message
kernel/power/swsusp.c +3 -0
@@ -1194,8 +1194,11 @@return "version" ;if (strcmp (swsusp_info.uts.machine,system_utsname.machine))return "machine" ; +#if 0 +/* We can't use number of CPUs when we use hotplug to remove them ;-))) */ if (swsusp_info.cpus !=num_online_cpus ())return "number of cpus" ; +#endif return NULL ; }
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!