diff options
| author | Andi Kleen <ak@suse.de> | 2007-07-16 02:40:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:43 -0400 |
| commit | 78c1b0657475dbafa008c71e3ccdc32141d8c7c7 (patch) | |
| tree | 40ce25318e0d296b462836d0a7156cf284561081 /kernel | |
| parent | 506eb99a26e7af8b649faa135f648d1a2f1e4cdc (diff) | |
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>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/time/clockevents.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index 76212b2a99de..2ad1c37b8dfe 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c | |||
| @@ -205,47 +205,6 @@ void clockevents_exchange_device(struct clock_event_device *old, | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | /** | 207 | /** |
| 208 | * clockevents_request_device | ||
| 209 | */ | ||
| 210 | struct clock_event_device *clockevents_request_device(unsigned int features, | ||
| 211 | cpumask_t cpumask) | ||
| 212 | { | ||
| 213 | struct clock_event_device *cur, *dev = NULL; | ||
| 214 | struct list_head *tmp; | ||
| 215 | |||
| 216 | spin_lock(&clockevents_lock); | ||
| 217 | |||
| 218 | list_for_each(tmp, &clockevent_devices) { | ||
| 219 | cur = list_entry(tmp, struct clock_event_device, list); | ||
| 220 | |||
| 221 | if ((cur->features & features) == features && | ||
| 222 | cpus_equal(cpumask, cur->cpumask)) { | ||
| 223 | if (!dev || dev->rating < cur->rating) | ||
| 224 | dev = cur; | ||
| 225 | } | ||
| 226 | } | ||
| 227 | |||
| 228 | clockevents_exchange_device(NULL, dev); | ||
| 229 | |||
| 230 | spin_unlock(&clockevents_lock); | ||
| 231 | |||
| 232 | return dev; | ||
| 233 | } | ||
| 234 | |||
| 235 | /** | ||
| 236 | * clockevents_release_device | ||
| 237 | */ | ||
| 238 | void clockevents_release_device(struct clock_event_device *dev) | ||
| 239 | { | ||
| 240 | spin_lock(&clockevents_lock); | ||
| 241 | |||
| 242 | clockevents_exchange_device(dev, NULL); | ||
| 243 | clockevents_notify_released(); | ||
| 244 | |||
| 245 | spin_unlock(&clockevents_lock); | ||
| 246 | } | ||
| 247 | |||
| 248 | /** | ||
| 249 | * clockevents_notify - notification about relevant events | 208 | * clockevents_notify - notification about relevant events |
| 250 | */ | 209 | */ |
| 251 | void clockevents_notify(unsigned long reason, void *arg) | 210 | void clockevents_notify(unsigned long reason, void *arg) |
