From: Oleg Nesterov Date: Tue, 29 Apr 2008 08:00:29 +0000 (-0700) Subject: simplify cpu_hotplug_begin()/put_online_cpus() X-Git-Tag: v2.6.26-rc1~556 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2ba7e2ae206e9ab24e8937d99d0d5513bfd08e5;p=pandora-kernel.git 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 Cc: Dipankar Sarma Acked-by: Gautham R Shenoy Cc: Ingo Molnar Cc: Srivatsa Vaddagiri Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed