File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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; }
229229static inline void tick_setup_hrtimer_broadcast (void ) {};
230230#endif
231231
232- #ifdef CONFIG_GENERIC_CLOCKEVENTS
233232extern 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
240236static inline void clockevents_suspend (void ) {}
241237static inline void clockevents_resume (void ) {}
242238
243239static inline int clockevents_notify (unsigned long reason , void * arg ) { return 0 ; }
244240static inline int tick_check_broadcast_expired (void ) { return 0 ; }
245241static inline void tick_setup_hrtimer_broadcast (void ) {};
242+ static inline int clockevents_notify (unsigned long reason , void * arg ) { return 0 ; }
246243
247244#endif
248245
Original file line number Diff line number Diff line change @@ -33,12 +33,6 @@ config ARCH_USES_GETTIMEOFFSET
3333config 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
4337config ARCH_HAS_TICK_BROADCAST
4438 bool
Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o
22obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
33obj-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
76ifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST ) ,y)
87 obj-y += tick-broadcast.o
98 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o
109endif
1110obj-$(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
1412obj-$(CONFIG_TIMER_STATS) += timer_stats.o
1513obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o
1614obj-$(CONFIG_TEST_UDELAY) += test_udelay.o
Original file line number Diff line number Diff 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}
832831device_initcall (clockevents_init_sysfs );
833832#endif /* SYSFS */
834-
835- #endif /* GENERIC_CLOCK_EVENTS */
Original file line number Diff line number Diff 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
168168int __clockevents_update_freq (struct clock_event_device * dev , u32 freq );
169169
170- #endif
170+ #endif /* GENERIC_CLOCKEVENTS */
171171
172172extern void do_timer (unsigned long ticks );
173173extern void update_wall_time (void );
You can’t perform that action at this time.
0 commit comments