[PATCH 28/35] clockevents: Remove the broadcast oneshot control leftovers

From: Peter Zijlstra
Date: Mon Feb 16 2015 - 08:16:46 EST


From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

All users converted. Remove the notify leftovers.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
include/linux/clockchips.h | 12 ------------
kernel/time/clockevents.c | 27 ---------------------------
2 files changed, 39 deletions(-)

Index: linux/include/linux/clockchips.h
===================================================================
--- linux.orig/include/linux/clockchips.h
+++ linux/include/linux/clockchips.h
@@ -8,19 +8,11 @@
#ifndef _LINUX_CLOCKCHIPS_H
#define _LINUX_CLOCKCHIPS_H

-/* Clock event notification values */
-enum clock_event_nofitiers {
- CLOCK_EVT_NOTIFY_ADD,
- CLOCK_EVT_NOTIFY_BROADCAST_ENTER,
- CLOCK_EVT_NOTIFY_BROADCAST_EXIT,
-};
-
#ifdef CONFIG_GENERIC_CLOCKEVENTS

#include <linux/clocksource.h>
#include <linux/cpumask.h>
#include <linux/ktime.h>
-#include <linux/notifier.h>

struct clock_event_device;
struct module;
@@ -184,17 +176,13 @@ static inline int tick_check_broadcast_e
static inline void tick_setup_hrtimer_broadcast(void) {};
#endif

-extern int clockevents_notify(unsigned long reason, void *arg);
-
#else /* CONFIG_GENERIC_CLOCKEVENTS */

static inline void clockevents_suspend(void) {}
static inline void clockevents_resume(void) {}

-static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; }
static inline int tick_check_broadcast_expired(void) { return 0; }
static inline void tick_setup_hrtimer_broadcast(void) {};
-static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; }

#endif

Index: linux/kernel/time/clockevents.c
===================================================================
--- linux.orig/kernel/time/clockevents.c
+++ linux/kernel/time/clockevents.c
@@ -573,33 +573,6 @@ void tick_cleanup_dead_cpu(int cpu)
}
#endif

-/**
- * clockevents_notify - notification about relevant events
- * Returns 0 on success, any other value on error
- */
-int clockevents_notify(unsigned long reason, void *arg)
-{
- unsigned long flags;
- int ret = 0;
-
- raw_spin_lock_irqsave(&clockevents_lock, flags);
-
- switch (reason) {
- case CLOCK_EVT_NOTIFY_BROADCAST_ENTER:
- tick_broadcast_enter();
- break;
- case CLOCK_EVT_NOTIFY_BROADCAST_EXIT:
- tick_broadcast_exit();
- break;
-
- default:
- break;
- }
- raw_spin_unlock_irqrestore(&clockevents_lock, flags);
- return ret;
-}
-EXPORT_SYMBOL_GPL(clockevents_notify);
-
#ifdef CONFIG_SYSFS
struct bus_type clockevents_subsys = {
.name = "clockevents",


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/