]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: Implement unbind functionality
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:50 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:18 +0000 (11:09 +0200)
commit3d0e8b3ac55593de4ae5d02960f8776ffc983aaa
treeb40a9a0a88a675e4511ad6b6c0bf072b6a1ef9f4
parent7abb392f18dc14720a4b321d299765c8fc436542
clockevents: Implement unbind functionality

Provide a sysfs interface to allow unbinding of clockevent
devices. The device is unbound if it is unused or if there is a
replacement device available. Unbinding of broadcast devices is not
supported as we don't want to foster that nonsense. If no replacement
device is available the unbind returns -EBUSY. Unbind is available
from the kernel and through sysfs, which is necessary to drop the
module refcount.

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.499216659@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clockchips.h
kernel/time/clockevents.c
kernel/time/clocksource.c
kernel/time/tick-common.c
kernel/time/tick-internal.h