lkml.org 
[lkml]   [2015]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 28/35] clockevents: Remove the broadcast oneshot control leftovers
From: Thomas Gleixner <tglx@linutronix.de>

All users converted. Remove the notify leftovers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
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",



\
 
 \ /
  Last update: 2015-02-16 14:41    [W:0.673 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site