Commit 26388a7c authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

cpuidle,arch: Mark all regular cpuidle_state:: Enter methods __cpuidle

For all cpuidle drivers that do not use CPUIDLE_FLAG_RCU_IDLE (iow,
the simple ones) make sure all the functions are marked __cpuidle.

( due to lack of noinstr validation on these platforms it is entirely
  possible this isn't complete )
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230112195542.335211484@infradead.org
parent 69e26b4f
...@@ -26,8 +26,8 @@ static struct cpuidle_ops cpuidle_ops[NR_CPUS] __ro_after_init; ...@@ -26,8 +26,8 @@ static struct cpuidle_ops cpuidle_ops[NR_CPUS] __ro_after_init;
* *
* Returns the index passed as parameter * Returns the index passed as parameter
*/ */
int arm_cpuidle_simple_enter(struct cpuidle_device *dev, __cpuidle int arm_cpuidle_simple_enter(struct cpuidle_device *dev, struct
struct cpuidle_driver *drv, int index) cpuidle_driver *drv, int index)
{ {
cpu_do_idle(); cpu_do_idle();
......
...@@ -44,8 +44,8 @@ static void davinci_save_ddr_power(int enter, bool pdown) ...@@ -44,8 +44,8 @@ static void davinci_save_ddr_power(int enter, bool pdown)
} }
/* Actual code that puts the SoC in different idle states */ /* Actual code that puts the SoC in different idle states */
static int davinci_enter_idle(struct cpuidle_device *dev, static __cpuidle int davinci_enter_idle(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index) struct cpuidle_driver *drv, int index)
{ {
davinci_save_ddr_power(1, ddr2_pdown); davinci_save_ddr_power(1, ddr2_pdown);
cpu_do_idle(); cpu_do_idle();
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include "cpuidle.h" #include "cpuidle.h"
static int imx5_cpuidle_enter(struct cpuidle_device *dev, static __cpuidle int imx5_cpuidle_enter(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index) struct cpuidle_driver *drv, int index)
{ {
arm_pm_idle(); arm_pm_idle();
return index; return index;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "common.h" #include "common.h"
#include "cpuidle.h" #include "cpuidle.h"
static int imx6sl_enter_wait(struct cpuidle_device *dev, static __cpuidle int imx6sl_enter_wait(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index) struct cpuidle_driver *drv, int index)
{ {
imx6_set_lpm(WAIT_UNCLOCKED); imx6_set_lpm(WAIT_UNCLOCKED);
/* /*
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include "common.h" #include "common.h"
#include "cpuidle.h" #include "cpuidle.h"
static int imx7ulp_enter_wait(struct cpuidle_device *dev, static __cpuidle int imx7ulp_enter_wait(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index) struct cpuidle_driver *drv, int index)
{ {
if (index == 1) if (index == 1)
imx7ulp_set_lpm(ULP_PM_WAIT); imx7ulp_set_lpm(ULP_PM_WAIT);
......
...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
#include "regs-sys-s3c64xx.h" #include "regs-sys-s3c64xx.h"
#include "regs-syscon-power-s3c64xx.h" #include "regs-syscon-power-s3c64xx.h"
static int s3c64xx_enter_idle(struct cpuidle_device *dev, static __cpuidle int s3c64xx_enter_idle(struct cpuidle_device *dev,
struct cpuidle_driver *drv, struct cpuidle_driver *drv, int index)
int index)
{ {
unsigned long tmp; unsigned long tmp;
......
...@@ -241,7 +241,7 @@ void __init check_wait(void) ...@@ -241,7 +241,7 @@ void __init check_wait(void)
} }
} }
void arch_cpu_idle(void) __cpuidle void arch_cpu_idle(void)
{ {
if (cpu_wait) if (cpu_wait)
cpu_wait(); cpu_wait();
...@@ -249,8 +249,8 @@ void arch_cpu_idle(void) ...@@ -249,8 +249,8 @@ void arch_cpu_idle(void)
#ifdef CONFIG_CPU_IDLE #ifdef CONFIG_CPU_IDLE
int mips_cpuidle_wait_enter(struct cpuidle_device *dev, __cpuidle int mips_cpuidle_wait_enter(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index) struct cpuidle_driver *drv, int index)
{ {
arch_cpu_idle(); arch_cpu_idle();
return index; return index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment