From: Keith Owens Date: Thu, 5 Jan 2006 23:36:06 +0000 (+1100) Subject: [IA64] Add hotplug cpu to salinfo.c, replace semaphore with mutex X-Git-Tag: v2.6.16-rc1~168^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e026cca0f2c09c4c28c902db6384fd8a412671d6;p=pandora-kernel.git [IA64] Add hotplug cpu to salinfo.c, replace semaphore with mutex Add hotplug cpu support to salinfo.c. The cpu_event field is a cpumask so use the cpu_* macros consistently, replacing the existing mixture of cpu_* and *_bit macros. Instead of counting the number of outstanding events in a semaphore and trying to track that count over user space context, interrupt context, non-maskable interrupt context and cpu hotplug, replace the semaphore with a test for "any bits set" combined with a mutex. Modify the locking to make the test for "work to do" an atomic operation. Signed-off-by: Keith Owens Signed-off-by: Tony Luck --- Reading git-diff-tree failed