clockevents: Add module refcount
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:49 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:17 +0000 (11:09 +0200)
commitccf33d6880f39a35158fff66db13000ae4943fac
treea39cb95e64c412b107c8640ae521bda78a7d1033
parent8c53daf63f56791ed47fc585206ef3049489612f
clockevents: Add module refcount

We want to be able to remove clockevent modules as well. Add a
refcount so we don't remove a module with an active clock event
device.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Link: http://lkml.kernel.org/r/20130425143436.307435149@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clockchips.h
kernel/time/clockevents.c
kernel/time/tick-broadcast.c
kernel/time/tick-common.c