Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: dw_apb_timer_of: Switch to sched_clock_register()

The 32 bit sched_clock interface now supports 64 bits. Upgrade to
the 64 bit function to allow us to remove the 32 bit registration
interface.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>

authored by

Stephen Boyd and committed by
John Stultz
fa8296ae 5602d7c8

+2 -2
+2 -2
drivers/clocksource/dw_apb_timer_of.c
··· 106 106 sched_rate = rate; 107 107 } 108 108 109 - static u32 read_sched_clock(void) 109 + static u64 read_sched_clock(void) 110 110 { 111 111 return __raw_readl(sched_io_base); 112 112 } ··· 128 128 of_node_put(sched_timer); 129 129 } 130 130 131 - setup_sched_clock(read_sched_clock, 32, sched_rate); 131 + sched_clock_register(read_sched_clock, 32, sched_rate); 132 132 } 133 133 134 134 static int num_called;