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

[S390] time: let local_tick_enable/disable() reprogram the clock comparator

Let local_tick_enable/disable() reprogram the clock comparator so the
function names make semantically more sense.
Also that way the functions are more symmetric since normally each
local_tick_enable() call usually would have a subsequent call to
set_clock_comparator() anyway.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
545b288d 17eb7a5c

+2 -2
+2
arch/s390/include/asm/timex.h
··· 59 59 60 60 old = S390_lowcore.clock_comparator; 61 61 S390_lowcore.clock_comparator = -1ULL; 62 + set_clock_comparator(S390_lowcore.clock_comparator); 62 63 return old; 63 64 } 64 65 65 66 static inline void local_tick_enable(unsigned long long comp) 66 67 { 67 68 S390_lowcore.clock_comparator = comp; 69 + set_clock_comparator(S390_lowcore.clock_comparator); 68 70 } 69 71 70 72 #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
-2
arch/s390/lib/delay.c
··· 47 47 lockdep_on(); 48 48 __ctl_load(cr0_saved, 0, 0); 49 49 local_tick_enable(clock_saved); 50 - set_clock_comparator(S390_lowcore.clock_comparator); 51 50 } 52 51 53 52 static void __udelay_enabled(unsigned long long usecs) ··· 69 70 if (clock_saved) 70 71 local_tick_enable(clock_saved); 71 72 } while (get_clock() < end); 72 - set_clock_comparator(S390_lowcore.clock_comparator); 73 73 } 74 74 75 75 /*