Skip to content

Commit 5cee964

Browse files
committed
time/timers: Move all time(r) related files into kernel/time
Except for Kconfig.HZ. That needs a separate treatment. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 5839427 commit 5cee964

10 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎MAINTAINERS‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,7 @@ L: linux-kernel@vger.kernel.org
41474147
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
41484148
S: Maintained
41494149
F: Documentation/timers/
4150-
F: kernel/hrtimer.c
4150+
F: kernel/time/hrtimer.c
41514151
F: kernel/time/clockevents.c
41524152
F: kernel/time/tick*.*
41534153
F: kernel/time/timer_*.c
@@ -6945,10 +6945,10 @@ POSIX CLOCKS and TIMERS
69456945
M: Thomas Gleixner <tglx@linutronix.de>
69466946
L: linux-kernel@vger.kernel.org
69476947
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
6948-
S: Supported
6948+
S: Maintained
69496949
F: fs/timerfd.c
69506950
F: include/linux/timer*
6951-
F: kernel/*timer*
6951+
F: kernel/time/*timer*
69526952

69536953
POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS
69546954
M: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

‎kernel/Makefile‎

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
#
44

55
obj-y = fork.o exec_domain.o panic.o \
6-
cpu.o exit.o itimer.o time.o softirq.o resource.o \
7-
sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \
6+
cpu.o exit.o softirq.o resource.o \
7+
sysctl.o sysctl_binary.o capability.o ptrace.o user.o \
88
signal.o sys.o kmod.o workqueue.o pid.o task_work.o \
9-
extable.o params.o posix-timers.o \
10-
kthread.o sys_ni.o posix-cpu-timers.o \
11-
hrtimer.o nsproxy.o \
9+
extable.o params.o \
10+
kthread.o sys_ni.o nsproxy.o \
1211
notifier.o ksysfs.o cred.o reboot.o \
1312
async.o range.o groups.o smpboot.o
1413

@@ -110,22 +109,6 @@ targets += config_data.h
110109
$(obj)/config_data.h: $(obj)/config_data.gz FORCE
111110
$(call filechk,ikconfiggz)
112111

113-
$(obj)/time.o: $(obj)/timeconst.h
114-
115-
quiet_cmd_hzfile = HZFILE $@
116-
cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@
117-
118-
targets += hz.bc
119-
$(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE
120-
$(call if_changed,hzfile)
121-
122-
quiet_cmd_bc = BC $@
123-
cmd_bc = bc -q $(filter-out FORCE,$^) > $@
124-
125-
targets += timeconst.h
126-
$(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE
127-
$(call if_changed,bc)
128-
129112
###############################################################################
130113
#
131114
# Roll all the X.509 certificates that we can find together and pull them into

‎kernel/time/Makefile‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o
12
obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
23
obj-y += timeconv.o posix-clock.o alarmtimer.o
34

@@ -12,3 +13,19 @@ obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o
1213
obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o
1314
obj-$(CONFIG_TIMER_STATS) += timer_stats.o
1415
obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o
16+
17+
$(obj)/time.o: $(obj)/timeconst.h
18+
19+
quiet_cmd_hzfile = HZFILE $@
20+
cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@
21+
22+
targets += hz.bc
23+
$(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE
24+
$(call if_changed,hzfile)
25+
26+
quiet_cmd_bc = BC $@
27+
cmd_bc = bc -q $(filter-out FORCE,$^) > $@
28+
29+
targets += timeconst.h
30+
$(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE
31+
$(call if_changed,bc)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)