]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
simplify cpu_hotplug_begin()/put_online_cpus()
authorOleg Nesterov <oleg@tv-sign.ru>
Tue, 29 Apr 2008 08:00:29 +0000 (01:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:11 +0000 (08:06 -0700)
commitd2ba7e2ae206e9ab24e8937d99d0d5513bfd08e5
tree4cdd43bbf03885705fed5c80e982d19d397afaeb
parent1e35eaa2d86419470f3f3aed9acd85b8addff25c
simplify cpu_hotplug_begin()/put_online_cpus()

cpu_hotplug_begin() must be always called under cpu_add_remove_lock, this
means that only one process can be cpu_hotplug.active_writer.  So we don't
need the cpu_hotplug.writer_queue, we can wake up the ->active_writer
directly.

Also, fix the comment.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Acked-by: Gautham R Shenoy <ego@in.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpu.c