diff options
-rw-r--r-- | include/linux/clockchips.h | 1 | ||||
-rw-r--r-- | kernel/time/Makefile | 5 | ||||
-rw-r--r-- | kernel/time/tick-broadcast-hrtimer.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 20a7183f2831..2e4cb67f6e56 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h | |||
@@ -207,6 +207,7 @@ static inline void clockevents_resume(void) {} | |||
207 | 207 | ||
208 | static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; } | 208 | static inline int clockevents_notify(unsigned long reason, void *arg) { return 0; } |
209 | static inline int tick_check_broadcast_expired(void) { return 0; } | 209 | static inline int tick_check_broadcast_expired(void) { return 0; } |
210 | static inline void tick_setup_hrtimer_broadcast(void) {}; | ||
210 | 211 | ||
211 | #endif | 212 | #endif |
212 | 213 | ||
diff --git a/kernel/time/Makefile b/kernel/time/Makefile index 06151ef4a744..57a413fd0ebf 100644 --- a/kernel/time/Makefile +++ b/kernel/time/Makefile | |||
@@ -3,7 +3,10 @@ obj-y += timeconv.o posix-clock.o alarmtimer.o | |||
3 | 3 | ||
4 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BUILD) += clockevents.o | 4 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BUILD) += clockevents.o |
5 | obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o | 5 | obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o |
6 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) += tick-broadcast.o tick-broadcast-hrtimer.o | 6 | ifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST),y) |
7 | obj-y += tick-broadcast.o | ||
8 | obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o | ||
9 | endif | ||
7 | obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o | 10 | obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o |
8 | obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o | 11 | obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o |
9 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o | 12 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o |
diff --git a/kernel/time/tick-broadcast-hrtimer.c b/kernel/time/tick-broadcast-hrtimer.c index 92425279312b..eb682d5c697c 100644 --- a/kernel/time/tick-broadcast-hrtimer.c +++ b/kernel/time/tick-broadcast-hrtimer.c | |||
@@ -82,7 +82,7 @@ static struct clock_event_device ce_broadcast_hrtimer = { | |||
82 | .min_delta_ns = 1, | 82 | .min_delta_ns = 1, |
83 | .max_delta_ns = KTIME_MAX, | 83 | .max_delta_ns = KTIME_MAX, |
84 | .min_delta_ticks = 1, | 84 | .min_delta_ticks = 1, |
85 | .max_delta_ticks = KTIME_MAX, | 85 | .max_delta_ticks = ULONG_MAX, |
86 | .mult = 1, | 86 | .mult = 1, |
87 | .shift = 0, | 87 | .shift = 0, |
88 | .cpumask = cpu_all_mask, | 88 | .cpumask = cpu_all_mask, |