Skip to content

Commit f247fd2

Browse files
svens-s390kuba-moo
authored andcommitted
s390/time: Add clocksource id to TOD clock
To allow specifying the clock source in the upcoming PtP driver, add a clocksource ID to the s390 TOD clock. Acked-by: Heiko Carstens <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 365836e commit f247fd2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/s390/kernel/time.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ static struct clocksource clocksource_tod = {
255255
.shift = 24,
256256
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
257257
.vdso_clock_mode = VDSO_CLOCKMODE_TOD,
258+
.id = CSID_S390_TOD,
258259
};
259260

260261
struct clocksource * __init clocksource_default_clock(void)

include/linux/clocksource_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
enum clocksource_ids {
77
CSID_GENERIC = 0,
88
CSID_ARM_ARCH_COUNTER,
9+
CSID_S390_TOD,
910
CSID_X86_TSC_EARLY,
1011
CSID_X86_TSC,
1112
CSID_X86_KVM_CLK,

0 commit comments

Comments
 (0)