From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932891AbbBPNQn (ORCPT ); Mon, 16 Feb 2015 08:16:43 -0500 Received: from casper.infradead.org ([85.118.1.10]:55464 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932429AbbBPNJa (ORCPT ); Mon, 16 Feb 2015 08:09:30 -0500 Message-Id: <20150216122413.649216643@infradead.org> User-Agent: quilt/0.61-1 Date: Mon, 16 Feb 2015 13:15:03 +0100 From: Peter Zijlstra To: linux-kernel@vger.kernel.org, mingo@kernel.org, rjw@rjwysocki.net Cc: tglx@linutronix.de, peterz@infradead.org Subject: [PATCH 28/35] clockevents: Remove the broadcast oneshot control leftovers References: <20150216121435.203983131@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=clockevents-remove-the-broadcast-oneshot-control-leftovers.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner All users converted. Remove the notify leftovers. Signed-off-by: Thomas Gleixner --- 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 #include #include -#include 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",