Sebastien Dugue
5762ba1873
hrtimers: allow the hot-unplugging of all cpus
...
Impact: fix CPU hotplug hang on Power6 testbox
On architectures that support offlining all cpus (at least powerpc/pseries),
hot-unpluging the tick_do_timer_cpu can result in a system hang.
This comes from the fact that if the cpu going down happens to be the
cpu doing the tick, then as the tick_do_timer_cpu handover happens after the
cpu is dead (via the CPU_DEAD notification), we're left without ticks,
jiffies are frozen and any task relying on timers (msleep, ...) is stuck.
That's particularly the case for the cpu looping in __cpu_die() waiting
for the dying cpu to be dead.
This patch addresses this by having the tick_do_timer_cpu handover happen
earlier during the CPU_DYING notification. For this, a new clockevent
notification type is introduced (CLOCK_EVT_NOTIFY_CPU_DYING) which is triggered
in hrtimer_cpu_notify().
Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net >
Cc: <stable@kernel.org >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2008-12-30 07:37:19 +01:00
..
2008-11-13 11:59:48 +01:00
2008-12-19 09:42:40 +01:00
2008-12-30 07:37:19 +01:00
2008-12-29 10:37:07 +01:00
2008-11-14 10:39:12 +11:00
2008-11-15 12:26:44 -08:00
2008-12-09 02:27:41 -05:00
2008-11-15 12:26:44 -08:00
2008-12-25 11:40:09 +11:00
2008-06-27 18:09:16 +02:00
2008-11-14 10:39:23 +11:00
2008-10-20 08:52:38 -07:00
2008-11-12 17:17:16 -08:00
2008-12-25 11:40:09 +11:00
2008-10-20 13:14:06 +02:00
2008-10-20 08:52:34 -07:00
2008-11-30 10:03:37 -08:00
2008-11-29 20:39:29 +01:00
2008-11-14 10:39:23 +11:00
2008-11-24 18:57:41 -05:00
2008-12-18 13:54:01 +01:00
2008-08-22 08:34:53 +02:00
2008-10-16 11:21:30 -07:00
2008-10-23 14:30:41 +04:00
2008-12-28 12:21:10 -08:00
2008-12-08 15:11:44 +01:00
2008-12-28 12:21:10 -08:00
2008-10-30 11:38:45 -07:00
2008-11-14 10:39:19 +11:00
2008-11-14 10:39:19 +11:00
2008-12-30 07:37:19 +01:00
2008-09-14 16:25:35 +02:00
2008-12-19 22:47:10 +01:00
2008-10-20 08:52:34 -07:00
2008-07-28 14:37:38 +02:00
2008-10-20 15:28:50 -07:00
2008-10-06 13:50:59 -05:00
2008-11-14 10:39:23 +11:00
2008-11-12 17:17:17 -08:00
2008-10-16 11:21:31 -07:00
2008-11-16 09:01:36 +01:00
2008-12-10 08:01:54 -08:00
2008-08-13 12:55:10 +02:00
2008-08-26 10:37:46 +02:00
2008-12-03 08:56:19 +01:00
2008-12-28 12:27:58 -08:00
2008-11-16 09:52:03 +01:00
2008-12-08 15:11:44 +01:00
2008-07-28 18:12:36 +02:00
2008-10-14 10:34:22 +02:00
2008-07-25 10:53:37 -07:00
2008-11-24 18:57:41 -05:00
2008-12-01 19:55:24 -08:00
2008-10-23 12:09:00 -07:00
2008-09-02 19:21:38 -07:00
2008-07-25 10:53:45 -07:00
2008-09-02 19:21:40 -07:00
2008-11-24 16:41:40 +01:00
2008-12-25 18:02:25 +01:00
2008-10-23 21:54:29 +02:00
2008-12-04 09:07:19 +01:00
2008-12-28 12:21:10 -08:00
2008-10-03 10:41:00 +02:00
2008-10-21 15:59:53 +02:00
2008-08-15 17:54:40 +02:00
2008-10-20 08:52:40 -07:00
2008-10-20 12:51:53 -07:00
2008-12-10 08:01:52 -08:00
2008-07-25 10:53:36 -07:00
2008-11-01 09:53:58 -07:00
2008-07-21 21:55:02 -07:00
2008-09-05 21:35:13 -07:00
2008-12-14 16:23:17 -08:00
2008-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-12-01 20:39:50 +01:00
2008-12-16 09:46:33 +01:00
2008-11-05 10:30:14 +01:00
2008-10-22 10:01:52 +02:00
2008-12-25 13:42:23 +01:00
2008-12-18 13:54:01 +01:00
2008-12-29 10:37:07 +01:00
2008-08-05 14:33:47 -07:00
2008-12-28 12:21:10 -08:00
2008-11-06 08:41:56 +01:00
2008-11-10 22:36:39 +01:00
2008-12-03 10:11:51 +01:00
2008-08-13 13:56:51 +02:00
2008-06-30 09:20:55 +02:00
2008-11-16 15:09:52 -08:00
2008-11-19 18:49:57 -08:00
2008-11-24 18:57:41 -05:00
2008-07-25 10:53:45 -07:00
2008-12-28 12:21:10 -08:00
2008-07-25 10:53:47 -07:00
2008-09-05 21:34:57 -07:00
2008-11-14 11:29:12 +11:00
2008-11-16 09:52:03 +01:00
2008-11-14 10:39:19 +11:00
2008-11-14 10:39:18 +11:00
2008-11-24 18:57:41 -05:00
2008-12-28 12:27:58 -08:00
2008-10-16 11:21:47 -07:00
2008-08-23 12:14:12 -07:00
2008-10-16 11:21:31 -07:00
2008-11-14 11:29:12 +11:00