mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 05:36:42 +07:00
af391b15f7
This patch renames __cpu_suspend to cpu_suspend so that it's aligned with ARM32. It also removes the redundant wrapper created. This is in preparation to implement generic PSCI system suspend using the cpu_{suspend,resume} which now has the same interface on both ARM and ARM64. Cc: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
21 lines
362 B
C
21 lines
362 B
C
#ifndef __ASM_CPUIDLE_H
|
|
#define __ASM_CPUIDLE_H
|
|
|
|
#include <asm/proc-fns.h>
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
|
extern int arm_cpuidle_init(unsigned int cpu);
|
|
extern int arm_cpuidle_suspend(int index);
|
|
#else
|
|
static inline int arm_cpuidle_init(unsigned int cpu)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
|
|
static inline int arm_cpuidle_suspend(int index)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
#endif
|
|
#endif
|