Commit 69e26b4f authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

cpuidle, arch: Mark all ct_cpuidle_enter() callers __cpuidle



For all cpuidle drivers that use CPUIDLE_FLAG_RCU_IDLE, ensure that
all functions that call ct_cpuidle_enter() 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.274096325@infradead.org
parent 17cc2b55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
static int num_idle_cpus = 0;
static DEFINE_RAW_SPINLOCK(cpuidle_lock);

static int imx6q_enter_wait(struct cpuidle_device *dev,
static __cpuidle int imx6q_enter_wait(struct cpuidle_device *dev,
				      struct cpuidle_driver *drv, int index)
{
	raw_spin_lock(&cpuidle_lock);
+2 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ static int imx6sx_idle_finish(unsigned long val)
	return 0;
}

static int imx6sx_enter_wait(struct cpuidle_device *dev,
static __cpuidle int imx6sx_enter_wait(struct cpuidle_device *dev,
				       struct cpuidle_driver *drv, int index)
{
	imx6_set_lpm(WAIT_UNCLOCKED);
+2 −2
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ static void __init save_l2x0_context(void)
 *	2 - CPUx L1 and logic lost + GIC lost: MPUSS OSWR
 *	3 - CPUx L1 and logic lost + GIC + L2 lost: DEVICE OFF
 */
int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state,
__cpuidle int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state,
				   bool rcuidle)
{
	struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu);
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static int omap34xx_do_sram_idle(unsigned long save_state)
	return 0;
}

void omap_sram_idle(bool rcuidle)
__cpuidle void omap_sram_idle(bool rcuidle)
{
	/* Variable to tell what needs to be saved and restored
	 * in omap_sram_idle*/
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ int acpi_processor_ffh_lpi_probe(unsigned int cpu)
	return psci_acpi_cpu_init_idle(cpu);
}

int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
__cpuidle int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
{
	u32 state = lpi->address;

Loading