Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -346,12 +346,14 @@ int dlpar_release_drc(u32 drc_index)

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);
}

void cpu_hotplug_driver_unlock()
void cpu_hotplug_driver_unlock(void)
__releases(pseries_cpu_hotplug_mutex)
{
	mutex_unlock(&pseries_cpu_hotplug_mutex);
}