1obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o 2obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o 3obj-y += timeconv.o posix-clock.o alarmtimer.o 4 5obj-$(CONFIG_GENERIC_CLOCKEVENTS_BUILD) += clockevents.o 6obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o 7ifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST),y) 8 obj-y += tick-broadcast.o 9 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o 10endif 11obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o 12obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o 13obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o 14obj-$(CONFIG_TIMER_STATS) += timer_stats.o 15obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o 16obj-$(CONFIG_TEST_UDELAY) += test_udelay.o 17 18$(obj)/time.o: $(obj)/timeconst.h 19 20quiet_cmd_hzfile = HZFILE $@ 21 cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@ 22 23targets += hz.bc 24$(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE 25 $(call if_changed,hzfile) 26 27quiet_cmd_bc = BC $@ 28 cmd_bc = bc -q $(filter-out FORCE,$^) > $@ 29 30targets += timeconst.h 31$(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE 32 $(call if_changed,bc) 33 34