mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:26:46 +07:00
2ef7f3dbd7
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
22 lines
461 B
C
22 lines
461 B
C
/*
|
|
* ARM specific SMP header, this contains our implementation
|
|
* details.
|
|
*/
|
|
#ifndef __ASMARM_SMP_PLAT_H
|
|
#define __ASMARM_SMP_PLAT_H
|
|
|
|
#include <asm/cputype.h>
|
|
|
|
/* all SMP configurations have the extended CPUID registers */
|
|
static inline int tlb_ops_need_broadcast(void)
|
|
{
|
|
return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 2;
|
|
}
|
|
|
|
static inline int cache_ops_need_broadcast(void)
|
|
{
|
|
return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 1;
|
|
}
|
|
|
|
#endif
|