Skip to content

Commit 9f083b7

Browse files
KAGA-KOKOingomolnar
authored andcommitted
clockevents: Remove CONFIG_GENERIC_CLOCKEVENTS_BUILD
This option was for simpler migration to the clock events code. Most architectures have been converted and the option has been disfunctional as a standalone option for quite some time. Remove it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/5021859.jl9OC1medj@vostro.rjw.lan Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 3071efa commit 9f083b7

5 files changed

Lines changed: 7 additions & 21 deletions

File tree

‎include/linux/clockchips.h‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum clock_event_nofitiers {
2222
CLOCK_EVT_NOTIFY_CPU_DEAD,
2323
};
2424

25-
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD
25+
#ifdef CONFIG_GENERIC_CLOCKEVENTS
2626

2727
#include <linux/clocksource.h>
2828
#include <linux/cpumask.h>
@@ -229,20 +229,17 @@ static inline int tick_check_broadcast_expired(void) { return 0; }
229229
static inline void tick_setup_hrtimer_broadcast(void) {};
230230
#endif
231231

232-
#ifdef CONFIG_GENERIC_CLOCKEVENTS
233232
extern int clockevents_notify(unsigned long reason, void *arg);
234-
#else
235-
static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; }
236-
#endif
237233

238-
#else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */
234+
#else /* CONFIG_GENERIC_CLOCKEVENTS */
239235

240236
static inline void clockevents_suspend(void) {}
241237
static inline void clockevents_resume(void) {}
242238

243239
static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; }
244240
static inline int tick_check_broadcast_expired(void) { return 0; }
245241
static inline void tick_setup_hrtimer_broadcast(void) {};
242+
static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; }
246243

247244
#endif
248245

‎kernel/time/Kconfig‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ config ARCH_USES_GETTIMEOFFSET
3333
config GENERIC_CLOCKEVENTS
3434
bool
3535

36-
# Migration helper. Builds, but does not invoke
37-
config GENERIC_CLOCKEVENTS_BUILD
38-
bool
39-
default y
40-
depends on GENERIC_CLOCKEVENTS
41-
4236
# Architecture can handle broadcast in a driver-agnostic way
4337
config ARCH_HAS_TICK_BROADCAST
4438
bool

‎kernel/time/Makefile‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o
22
obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
33
obj-y += timeconv.o timecounter.o posix-clock.o alarmtimer.o
44

5-
obj-$(CONFIG_GENERIC_CLOCKEVENTS_BUILD) += clockevents.o
6-
obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o
5+
obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o
76
ifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST),y)
87
obj-y += tick-broadcast.o
98
obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o
109
endif
1110
obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o
12-
obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o
13-
obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o
11+
obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o
1412
obj-$(CONFIG_TIMER_STATS) += timer_stats.o
1513
obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o
1614
obj-$(CONFIG_TEST_UDELAY) += test_udelay.o

‎kernel/time/clockevents.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,6 @@ void clockevents_resume(void)
645645
dev->resume(dev);
646646
}
647647

648-
#ifdef CONFIG_GENERIC_CLOCKEVENTS
649648
/**
650649
* clockevents_notify - notification about relevant events
651650
* Returns 0 on success, any other value on error
@@ -831,5 +830,3 @@ static int __init clockevents_init_sysfs(void)
831830
}
832831
device_initcall(clockevents_init_sysfs);
833832
#endif /* SYSFS */
834-
835-
#endif /* GENERIC_CLOCK_EVENTS */

‎kernel/time/tick-internal.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern seqlock_t jiffies_lock;
1010

1111
#define CS_NAME_LEN 32
1212

13-
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD
13+
#ifdef CONFIG_GENERIC_CLOCKEVENTS
1414

1515
#define TICK_DO_TIMER_NONE -1
1616
#define TICK_DO_TIMER_BOOT -2
@@ -167,7 +167,7 @@ static inline int tick_device_is_functional(struct clock_event_device *dev)
167167

168168
int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
169169

170-
#endif
170+
#endif /* GENERIC_CLOCKEVENTS */
171171

172172
extern void do_timer(unsigned long ticks);
173173
extern void update_wall_time(void);

0 commit comments

Comments
 (0)