mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
Remove clockevents_{release,request}_device
Not called by anything in tree. Signed-off-by: Andi Kleen <ak@suse.de> Acked-by: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
506eb99a26
commit
78c1b06574
1 changed files with 0 additions and 41 deletions
|
@ -204,47 +204,6 @@ void clockevents_exchange_device(struct clock_event_device *old,
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clockevents_request_device
|
|
||||||
*/
|
|
||||||
struct clock_event_device *clockevents_request_device(unsigned int features,
|
|
||||||
cpumask_t cpumask)
|
|
||||||
{
|
|
||||||
struct clock_event_device *cur, *dev = NULL;
|
|
||||||
struct list_head *tmp;
|
|
||||||
|
|
||||||
spin_lock(&clockevents_lock);
|
|
||||||
|
|
||||||
list_for_each(tmp, &clockevent_devices) {
|
|
||||||
cur = list_entry(tmp, struct clock_event_device, list);
|
|
||||||
|
|
||||||
if ((cur->features & features) == features &&
|
|
||||||
cpus_equal(cpumask, cur->cpumask)) {
|
|
||||||
if (!dev || dev->rating < cur->rating)
|
|
||||||
dev = cur;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
clockevents_exchange_device(NULL, dev);
|
|
||||||
|
|
||||||
spin_unlock(&clockevents_lock);
|
|
||||||
|
|
||||||
return dev;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* clockevents_release_device
|
|
||||||
*/
|
|
||||||
void clockevents_release_device(struct clock_event_device *dev)
|
|
||||||
{
|
|
||||||
spin_lock(&clockevents_lock);
|
|
||||||
|
|
||||||
clockevents_exchange_device(dev, NULL);
|
|
||||||
clockevents_notify_released();
|
|
||||||
|
|
||||||
spin_unlock(&clockevents_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clockevents_notify - notification about relevant events
|
* clockevents_notify - notification about relevant events
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue