mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 06:56:52 +07:00
292ec42af7
Add a function to set the SCU low-power mode for SMP CPUs. This centralizes this functionality rather than having to expose the SCU register definitions to each platform. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 lines
302 B
C
15 lines
302 B
C
#ifndef __ASMARM_ARCH_SCU_H
|
|
#define __ASMARM_ARCH_SCU_H
|
|
|
|
#define SCU_PM_NORMAL 0
|
|
#define SCU_PM_DORMANT 2
|
|
#define SCU_PM_POWEROFF 3
|
|
|
|
#ifndef __ASSEMBLER__
|
|
unsigned int scu_get_core_count(void __iomem *);
|
|
void scu_enable(void __iomem *);
|
|
int scu_power_mode(void __iomem *, unsigned int);
|
|
#endif
|
|
|
|
#endif
|