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