treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / timex.h
blobd2d2c4bd843589d0ae2115e0ca7cdcef4fb6d2a8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_TIMEX_H
3 #define _ASM_POWERPC_TIMEX_H
5 #ifdef __KERNEL__
7 /*
8 * PowerPC architecture timex specifications
9 */
11 #include <asm/cputable.h>
12 #include <asm/reg.h>
14 #define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
16 typedef unsigned long cycles_t;
18 static inline cycles_t get_cycles(void)
20 if (IS_ENABLED(CONFIG_BOOK3S_601))
21 return 0;
23 return mftb();
26 #endif /* __KERNEL__ */
27 #endif /* _ASM_POWERPC_TIMEX_H */