Heiko Carstens a4c4af7c8d [PATCH] cpu hoptlug: avoid usage of smp_processor_id() in preemptible code
Replace smp_processor_id() with any_online_cpu(cpu_online_map) in order to
avoid lots of "BUG: using smp_processor_id() in preemptible [00000001]
code:..." messages in case taking a cpu online fails.

All the traces start at the last notifier_call_chain(...) in kernel/cpu.c.
Since we hold the cpu_control semaphore it shouldn't be any problem to access
cpu_online_map.

The reason why cpu_up failed is simply that the cpu that was supposed to be
taken online wasn't even there.  That is because on s390 we never know when a
new cpu comes and therefore cpu_possible_map consists of only ones and doesn't
reflect reality.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-07 07:53:29 -08:00
..
2005-10-29 21:40:38 -07:00
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:49 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:40 -07:00
2005-07-27 16:25:51 -07:00
2005-10-30 17:37:32 -08:00
2005-10-29 21:40:42 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:32 -08:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:23 -08:00
2005-07-07 18:23:46 -07:00
2005-09-07 16:57:45 -07:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:21 -07:00
2005-08-01 10:03:56 -07:00
2005-08-29 16:01:32 -07:00
2005-10-30 17:37:18 -08:00
2005-10-30 17:37:25 -08:00
2005-04-16 15:20:36 -07:00
2005-07-12 20:38:38 -07:00
2005-04-16 15:20:36 -07:00