Rafael J. Wysocki
e3920fb42c
[PATCH] Disable CPU hotplug during suspend
...
The current suspend code has to be run on one CPU, so we use the CPU
hotplug to take the non-boot CPUs offline on SMP machines. However, we
should also make sure that these CPUs will not be enabled by someone else
after we have disabled them.
The functions disable_nonboot_cpus() and enable_nonboot_cpus() are moved to
kernel/cpu.c, because they now refer to some stuff in there that should
better be static. Also it's better if disable_nonboot_cpus() returns an
error instead of panicking if something goes wrong, and
enable_nonboot_cpus() has no reason to panic(), because the CPUs may have
been enabled by the userland before it tries to take them online.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl >
Acked-by: Pavel Machek <pavel@ucw.cz >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Linus Torvalds <torvalds@osdl.org >
2006-09-26 08:48:59 -07:00
..
2006-09-19 12:43:58 +01:00
2006-09-19 12:43:58 +01:00
2006-08-03 16:56:02 -04:00
2006-09-07 15:57:12 +01:00
2006-08-16 20:13:06 -05:00
2006-09-24 19:28:47 -07:00
2006-09-22 14:55:33 -07:00
2006-09-19 12:43:58 +01:00
2006-09-22 15:20:20 -07:00
2006-09-22 14:55:33 -07:00
2006-09-19 12:43:58 +01:00
2006-09-19 12:43:58 +01:00
2006-09-22 23:25:01 -04:00
2006-09-19 12:43:58 +01:00
2006-09-19 12:43:58 +01:00
2006-09-24 11:13:19 -04:00
2006-08-31 00:02:15 -04:00
2006-09-06 11:00:02 -07:00
2006-09-11 13:32:30 -04:00
2006-09-23 21:03:52 -05:00
2006-09-26 08:48:45 -07:00
2006-07-31 13:28:36 -07:00
2006-09-24 11:13:19 -04:00
2006-08-27 11:01:29 -07:00
2006-09-26 08:48:59 -07:00
2006-09-21 11:46:23 +10:00
2006-09-22 23:24:30 -04:00
2006-09-24 17:56:32 -03:00
2006-08-06 08:57:47 -07:00
2006-09-01 11:39:08 -07:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:54 -07:00
2006-09-26 08:48:56 -07:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-08-14 12:54:29 -07:00
2006-09-22 15:18:10 -07:00
2006-09-22 15:18:47 -07:00
2006-08-19 17:44:31 -04:00
2006-09-24 13:50:45 -07:00
2006-08-03 10:50:30 -04:00
2006-07-28 21:02:00 -07:00
2006-09-22 15:18:51 -07:00
2006-09-26 08:48:50 -07:00
2006-09-26 08:48:46 -07:00
2006-09-06 11:00:01 -07:00
2006-07-28 08:54:59 +02:00
2006-09-22 15:20:29 -07:00
2006-08-17 16:29:46 -07:00
2006-09-22 14:53:50 -07:00
2006-09-22 15:07:00 -07:00
2006-09-22 15:18:29 -07:00
2006-09-22 15:18:01 -07:00
2006-08-21 10:02:50 +02:00
2006-09-22 14:53:32 -07:00
2006-09-22 15:20:25 -07:00
2006-09-26 08:48:53 -07:00
2006-09-24 11:13:19 -04:00
2006-08-27 11:01:32 -07:00
2006-09-24 11:13:19 -04:00
2006-07-31 13:28:43 -07:00
2006-09-24 22:06:48 +01:00
2006-09-26 08:48:58 -07:00
2006-08-03 13:20:06 -07:00
2006-09-06 11:00:02 -07:00
2006-09-25 15:33:09 -04:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:47 -07:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:52 -07:00
2006-09-26 08:48:51 -07:00
2006-09-20 15:58:25 +02:00
2006-08-30 10:47:27 -04:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-09-22 14:54:04 -07:00
2006-09-22 14:54:20 -07:00
2006-09-24 10:15:13 -07:00
2006-09-22 15:18:31 -07:00
2006-09-22 15:19:51 -07:00
2006-09-22 14:53:54 -07:00
2006-09-02 15:33:49 -05:00
2006-09-22 23:24:54 -04:00
2006-09-24 11:13:19 -04:00
2006-09-22 23:24:32 -04:00
2006-09-22 23:24:53 -04:00
2006-08-27 11:01:32 -07:00
2006-09-26 08:48:49 -07:00
2006-09-26 08:48:48 -07:00
2006-09-23 15:33:43 -05:00
2006-09-26 08:48:47 -07:00
2006-08-19 17:44:31 -04:00
2006-09-22 15:18:12 -07:00
2006-07-31 13:28:45 -07:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:44 -07:00
2006-09-22 14:55:02 -07:00
2006-09-21 11:46:16 +10:00
2006-09-01 11:39:08 -07:00
2006-09-22 14:53:36 -07:00
2006-09-26 08:48:52 -07:00
2006-09-22 14:53:53 -07:00
2006-09-26 08:48:51 -07:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:56 -07:00
2006-09-22 14:55:16 -07:00
2006-09-22 08:00:42 +01:00
2006-09-26 08:48:59 -07:00
2006-09-26 08:48:58 -07:00
2006-09-26 08:48:51 -07:00
2006-09-13 07:32:15 -07:00
2006-08-27 11:01:34 -07:00
2006-08-02 16:41:42 -07:00
2006-08-02 16:52:10 -07:00
2006-09-24 11:13:19 -04:00
2006-09-10 13:45:55 -03:00
2006-09-10 13:45:55 -03:00
2006-09-26 08:48:45 -07:00
2006-09-26 08:48:47 -07:00
2006-08-27 11:01:29 -07:00
2006-09-26 08:48:44 -07:00
2006-09-22 15:08:35 -07:00