diff options
author | Gautham R Shenoy <ego@in.ibm.com> | 2009-12-09 20:19:42 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-17 22:54:26 -0500 |
commit | 3d9b740b2d8d73795d745a46eabd55479ee68dcc (patch) | |
tree | 8f37f2eca17b65cf841ac1660c9423753a79295b /arch/powerpc/platforms/pseries | |
parent | e9edb232d3b0848457a83a5b697f55264542892f (diff) |
powerpc/pseries: Make declarations of cpu_hotplug_driver_lock() ANSI compatible.
And add the __acquires() and __releases() annotations, while at it.
Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r-- | arch/powerpc/platforms/pseries/dlpar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 12df9e8812a9..67b7a10f9fce 100644 --- a/arch/powerpc/platforms/pseries/dlpar.c +++ b/arch/powerpc/platforms/pseries/dlpar.c | |||
@@ -346,12 +346,14 @@ int dlpar_release_drc(u32 drc_index) | |||
346 | 346 | ||
347 | static DEFINE_MUTEX(pseries_cpu_hotplug_mutex); | 347 | static DEFINE_MUTEX(pseries_cpu_hotplug_mutex); |
348 | 348 | ||
349 | void cpu_hotplug_driver_lock() | 349 | void cpu_hotplug_driver_lock(void) |
350 | __acquires(pseries_cpu_hotplug_mutex) | ||
350 | { | 351 | { |
351 | mutex_lock(&pseries_cpu_hotplug_mutex); | 352 | mutex_lock(&pseries_cpu_hotplug_mutex); |
352 | } | 353 | } |
353 | 354 | ||
354 | void cpu_hotplug_driver_unlock() | 355 | void cpu_hotplug_driver_unlock(void) |
356 | __releases(pseries_cpu_hotplug_mutex) | ||
355 | { | 357 | { |
356 | mutex_unlock(&pseries_cpu_hotplug_mutex); | 358 | mutex_unlock(&pseries_cpu_hotplug_mutex); |
357 | } | 359 | } |