Commit 3d9b740b authored by Gautham R Shenoy's avatar Gautham R Shenoy Committed by Benjamin Herrenschmidt

powerpc/pseries: Make declarations of cpu_hotplug_driver_lock() ANSI compatible.

And add the __acquires() and __releases() annotations, while at it.
Signed-off-by: default avatarGautham R Shenoy <ego@in.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent e9edb232
...@@ -346,12 +346,14 @@ int dlpar_release_drc(u32 drc_index) ...@@ -346,12 +346,14 @@ int dlpar_release_drc(u32 drc_index)
static DEFINE_MUTEX(pseries_cpu_hotplug_mutex); static DEFINE_MUTEX(pseries_cpu_hotplug_mutex);
void cpu_hotplug_driver_lock() void cpu_hotplug_driver_lock(void)
__acquires(pseries_cpu_hotplug_mutex)
{ {
mutex_lock(&pseries_cpu_hotplug_mutex); mutex_lock(&pseries_cpu_hotplug_mutex);
} }
void cpu_hotplug_driver_unlock() void cpu_hotplug_driver_unlock(void)
__releases(pseries_cpu_hotplug_mutex)
{ {
mutex_unlock(&pseries_cpu_hotplug_mutex); mutex_unlock(&pseries_cpu_hotplug_mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment