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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'timers-urgent-2021-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer fixes from Thomas Gleixner:
"Two fixes for clock chip drivers:

- A regression fix for the Designware APB timer. A recent change to
the error checking code transformed the error condition wrongly so
it turned into a fail if good condition.

- Fix a clang build fail of the ARM architected timer driver"

* tag 'timers-urgent-2021-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
clocksource/drivers/arm_arch_timer: Force inlining of erratum_set_next_event_generic()
clocksource/drivers/dw_apb_timer_of: Fix probe failure

+8 -3
+7 -2
drivers/clocksource/arm_arch_timer.c
··· 394 395 static atomic_t timer_unstable_counter_workaround_in_use = ATOMIC_INIT(0); 396 397 - static void erratum_set_next_event_generic(const int access, unsigned long evt, 398 - struct clock_event_device *clk) 399 { 400 unsigned long ctrl; 401 u64 cval;
··· 394 395 static atomic_t timer_unstable_counter_workaround_in_use = ATOMIC_INIT(0); 396 397 + /* 398 + * Force the inlining of this function so that the register accesses 399 + * can be themselves correctly inlined. 400 + */ 401 + static __always_inline 402 + void erratum_set_next_event_generic(const int access, unsigned long evt, 403 + struct clock_event_device *clk) 404 { 405 unsigned long ctrl; 406 u64 cval;
+1 -1
drivers/clocksource/dw_apb_timer_of.c
··· 47 pr_warn("pclk for %pOFn is present, but could not be activated\n", 48 np); 49 50 - if (!of_property_read_u32(np, "clock-freq", rate) && 51 !of_property_read_u32(np, "clock-frequency", rate)) 52 return 0; 53
··· 47 pr_warn("pclk for %pOFn is present, but could not be activated\n", 48 np); 49 50 + if (!of_property_read_u32(np, "clock-freq", rate) || 51 !of_property_read_u32(np, "clock-frequency", rate)) 52 return 0; 53