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

parisc: define get_cycles macro for arch-override

PA-RISC defines a get_cycles() function, but it does not do the usual
`#define get_cycles get_cycles` dance, making it impossible for generic
code to see if an arch-specific function was defined. While the
get_cycles() ifdef is not currently used, the following timekeeping
patch in this series will depend on the macro existing (or not existing)
when defining random_get_entropy().

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

+2 -1
+2 -1
arch/parisc/include/asm/timex.h
··· 13 13 14 14 typedef unsigned long cycles_t; 15 15 16 - static inline cycles_t get_cycles (void) 16 + static inline cycles_t get_cycles(void) 17 17 { 18 18 return mfctl(16); 19 19 } 20 + #define get_cycles get_cycles 20 21 21 22 #endif