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>
Showing
- include/linux/clockchips.h 1 addition, 0 deletionsinclude/linux/clockchips.h
- kernel/time/clockevents.c 125 additions, 0 deletionskernel/time/clockevents.c
- kernel/time/clocksource.c 5 additions, 4 deletionskernel/time/clocksource.c
- kernel/time/tick-common.c 24 additions, 0 deletionskernel/time/tick-common.c
- kernel/time/tick-internal.h 7 additions, 0 deletionskernel/time/tick-internal.h
Loading
Please register or sign in to comment