Skip to content

Commit

Permalink
timer: remove clockevents_unregister_notifier
Browse files Browse the repository at this point in the history
I find a function(clockevents_unregister_notifier) which is not called by
anything in tree.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Miao Xie authored and Linus Torvalds committed Aug 11, 2007
1 parent 96ddbf5 commit 6ddfca9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion include/linux/clockchips.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ extern void clockevents_exchange_device(struct clock_event_device *old,
extern void clockevents_set_mode(struct clock_event_device *dev,
enum clock_event_mode mode);
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,
ktime_t expires, ktime_t now);

Expand Down
10 changes: 0 additions & 10 deletions kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,6 @@ int clockevents_register_notifier(struct notifier_block *nb)
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
* held.
Expand Down

0 comments on commit 6ddfca9

Please sign in to comment.