mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:05:10 +07:00
12c3f1fd87
Now that 601 is exclusive from other 6xx, CPU_FTR_601 and associated fixups are useless. Drop this feature and use #ifdefs instead. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/ecdb7194a17dbfa01865df6a82979533adc2c70b.1566834712.git.christophe.leroy@c-s.fr
28 lines
472 B
C
28 lines
472 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_TIMEX_H
|
|
#define _ASM_POWERPC_TIMEX_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
/*
|
|
* PowerPC architecture timex specifications
|
|
*/
|
|
|
|
#include <asm/cputable.h>
|
|
#include <asm/reg.h>
|
|
|
|
#define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
|
|
|
|
typedef unsigned long cycles_t;
|
|
|
|
static inline cycles_t get_cycles(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_BOOK3S_601))
|
|
return 0;
|
|
|
|
return mftb();
|
|
}
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* _ASM_POWERPC_TIMEX_H */
|