提交 6ddfca95 编写于 作者: M Miao Xie 提交者: Linus Torvalds

timer: remove clockevents_unregister_notifier

I find a function(clockevents_unregister_notifier) which is not called by
anything in tree.
Signed-off-by: NMiao Xie <miaox@cn.fujitsu.com>
Acked-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 96ddbf50
...@@ -123,7 +123,6 @@ extern void clockevents_exchange_device(struct clock_event_device *old, ...@@ -123,7 +123,6 @@ extern void clockevents_exchange_device(struct clock_event_device *old,
extern void clockevents_set_mode(struct clock_event_device *dev, extern void clockevents_set_mode(struct clock_event_device *dev,
enum clock_event_mode mode); enum clock_event_mode mode);
extern int clockevents_register_notifier(struct notifier_block *nb); extern int clockevents_register_notifier(struct notifier_block *nb);
extern void clockevents_unregister_notifier(struct notifier_block *nb);
extern int clockevents_program_event(struct clock_event_device *dev, extern int clockevents_program_event(struct clock_event_device *dev,
ktime_t expires, ktime_t now); ktime_t expires, ktime_t now);
......
...@@ -113,16 +113,6 @@ int clockevents_register_notifier(struct notifier_block *nb) ...@@ -113,16 +113,6 @@ int clockevents_register_notifier(struct notifier_block *nb)
return ret; return ret;
} }
/**
* clockevents_unregister_notifier - unregister a clock events change listener
*/
void clockevents_unregister_notifier(struct notifier_block *nb)
{
spin_lock(&clockevents_lock);
raw_notifier_chain_unregister(&clockevents_chain, nb);
spin_unlock(&clockevents_lock);
}
/* /*
* Notify about a clock event change. Called with clockevents_lock * Notify about a clock event change. Called with clockevents_lock
* held. * held.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册