mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
e9edb232d3
commit
3d9b740b2d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue