Commit db8f5086 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

cpuidle, ARM: OMAP2+: powerdomain: Remove trace_.*_rcuidle()

OMAP was the one and only user.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Tested-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230112195541.782536366@infradead.org
parent 259c95af
...@@ -187,9 +187,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag) ...@@ -187,9 +187,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
trace_state = (PWRDM_TRACE_STATES_FLAG | trace_state = (PWRDM_TRACE_STATES_FLAG |
((next & OMAP_POWERSTATE_MASK) << 8) | ((next & OMAP_POWERSTATE_MASK) << 8) |
((prev & OMAP_POWERSTATE_MASK) << 0)); ((prev & OMAP_POWERSTATE_MASK) << 0));
trace_power_domain_target_rcuidle(pwrdm->name, trace_power_domain_target(pwrdm->name,
trace_state, trace_state,
raw_smp_processor_id()); raw_smp_processor_id());
} }
break; break;
default: default:
...@@ -541,8 +541,8 @@ int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) ...@@ -541,8 +541,8 @@ int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst)
if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) { if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) {
/* Trace the pwrdm desired target state */ /* Trace the pwrdm desired target state */
trace_power_domain_target_rcuidle(pwrdm->name, pwrst, trace_power_domain_target(pwrdm->name, pwrst,
raw_smp_processor_id()); raw_smp_processor_id());
/* Program the pwrdm desired target state */ /* Program the pwrdm desired target state */
ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst);
} }
......
...@@ -468,7 +468,7 @@ static int rpm_idle(struct device *dev, int rpmflags) ...@@ -468,7 +468,7 @@ static int rpm_idle(struct device *dev, int rpmflags)
int (*callback)(struct device *); int (*callback)(struct device *);
int retval; int retval;
trace_rpm_idle_rcuidle(dev, rpmflags); trace_rpm_idle(dev, rpmflags);
retval = rpm_check_suspend_allowed(dev); retval = rpm_check_suspend_allowed(dev);
if (retval < 0) if (retval < 0)
; /* Conditions are wrong. */ ; /* Conditions are wrong. */
...@@ -508,7 +508,7 @@ static int rpm_idle(struct device *dev, int rpmflags) ...@@ -508,7 +508,7 @@ static int rpm_idle(struct device *dev, int rpmflags)
dev->power.request_pending = true; dev->power.request_pending = true;
queue_work(pm_wq, &dev->power.work); queue_work(pm_wq, &dev->power.work);
} }
trace_rpm_return_int_rcuidle(dev, _THIS_IP_, 0); trace_rpm_return_int(dev, _THIS_IP_, 0);
return 0; return 0;
} }
...@@ -530,7 +530,7 @@ static int rpm_idle(struct device *dev, int rpmflags) ...@@ -530,7 +530,7 @@ static int rpm_idle(struct device *dev, int rpmflags)
wake_up_all(&dev->power.wait_queue); wake_up_all(&dev->power.wait_queue);
out: out:
trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval); trace_rpm_return_int(dev, _THIS_IP_, retval);
return retval ? retval : rpm_suspend(dev, rpmflags | RPM_AUTO); return retval ? retval : rpm_suspend(dev, rpmflags | RPM_AUTO);
} }
...@@ -562,7 +562,7 @@ static int rpm_suspend(struct device *dev, int rpmflags) ...@@ -562,7 +562,7 @@ static int rpm_suspend(struct device *dev, int rpmflags)
struct device *parent = NULL; struct device *parent = NULL;
int retval; int retval;
trace_rpm_suspend_rcuidle(dev, rpmflags); trace_rpm_suspend(dev, rpmflags);
repeat: repeat:
retval = rpm_check_suspend_allowed(dev); retval = rpm_check_suspend_allowed(dev);
...@@ -713,7 +713,7 @@ static int rpm_suspend(struct device *dev, int rpmflags) ...@@ -713,7 +713,7 @@ static int rpm_suspend(struct device *dev, int rpmflags)
} }
out: out:
trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval); trace_rpm_return_int(dev, _THIS_IP_, retval);
return retval; return retval;
...@@ -765,7 +765,7 @@ static int rpm_resume(struct device *dev, int rpmflags) ...@@ -765,7 +765,7 @@ static int rpm_resume(struct device *dev, int rpmflags)
struct device *parent = NULL; struct device *parent = NULL;
int retval = 0; int retval = 0;
trace_rpm_resume_rcuidle(dev, rpmflags); trace_rpm_resume(dev, rpmflags);
repeat: repeat:
if (dev->power.runtime_error) { if (dev->power.runtime_error) {
...@@ -935,7 +935,7 @@ static int rpm_resume(struct device *dev, int rpmflags) ...@@ -935,7 +935,7 @@ static int rpm_resume(struct device *dev, int rpmflags)
spin_lock_irq(&dev->power.lock); spin_lock_irq(&dev->power.lock);
} }
trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval); trace_rpm_return_int(dev, _THIS_IP_, retval);
return retval; return retval;
} }
...@@ -1091,7 +1091,7 @@ int __pm_runtime_idle(struct device *dev, int rpmflags) ...@@ -1091,7 +1091,7 @@ int __pm_runtime_idle(struct device *dev, int rpmflags)
if (retval < 0) { if (retval < 0) {
return retval; return retval;
} else if (retval > 0) { } else if (retval > 0) {
trace_rpm_usage_rcuidle(dev, rpmflags); trace_rpm_usage(dev, rpmflags);
return 0; return 0;
} }
} }
...@@ -1129,7 +1129,7 @@ int __pm_runtime_suspend(struct device *dev, int rpmflags) ...@@ -1129,7 +1129,7 @@ int __pm_runtime_suspend(struct device *dev, int rpmflags)
if (retval < 0) { if (retval < 0) {
return retval; return retval;
} else if (retval > 0) { } else if (retval > 0) {
trace_rpm_usage_rcuidle(dev, rpmflags); trace_rpm_usage(dev, rpmflags);
return 0; return 0;
} }
} }
...@@ -1212,7 +1212,7 @@ int pm_runtime_get_if_active(struct device *dev, bool ign_usage_count) ...@@ -1212,7 +1212,7 @@ int pm_runtime_get_if_active(struct device *dev, bool ign_usage_count)
} else { } else {
retval = atomic_inc_not_zero(&dev->power.usage_count); retval = atomic_inc_not_zero(&dev->power.usage_count);
} }
trace_rpm_usage_rcuidle(dev, 0); trace_rpm_usage(dev, 0);
spin_unlock_irqrestore(&dev->power.lock, flags); spin_unlock_irqrestore(&dev->power.lock, flags);
return retval; return retval;
...@@ -1576,7 +1576,7 @@ void pm_runtime_allow(struct device *dev) ...@@ -1576,7 +1576,7 @@ void pm_runtime_allow(struct device *dev)
if (ret == 0) if (ret == 0)
rpm_idle(dev, RPM_AUTO | RPM_ASYNC); rpm_idle(dev, RPM_AUTO | RPM_ASYNC);
else if (ret > 0) else if (ret > 0)
trace_rpm_usage_rcuidle(dev, RPM_AUTO | RPM_ASYNC); trace_rpm_usage(dev, RPM_AUTO | RPM_ASYNC);
out: out:
spin_unlock_irq(&dev->power.lock); spin_unlock_irq(&dev->power.lock);
...@@ -1646,7 +1646,7 @@ static void update_autosuspend(struct device *dev, int old_delay, int old_use) ...@@ -1646,7 +1646,7 @@ static void update_autosuspend(struct device *dev, int old_delay, int old_use)
atomic_inc(&dev->power.usage_count); atomic_inc(&dev->power.usage_count);
rpm_resume(dev, 0); rpm_resume(dev, 0);
} else { } else {
trace_rpm_usage_rcuidle(dev, 0); trace_rpm_usage(dev, 0);
} }
} }
......
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