Skip to content

Commit

Permalink
powerpc/pseries: Make declarations of cpu_hotplug_driver_lock() ANSI …
Browse files Browse the repository at this point in the history
…compatible.

And add the __acquires() and __releases() annotations, while at it.

Signed-off-by: Gautham R Shenoy <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
Gautham R Shenoy authored and ozbenh committed Dec 18, 2009
1 parent e9edb23 commit 3d9b740
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/powerpc/platforms/pseries/dlpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3d9b740

Please sign in to comment.