History

Merge branches 'pm-cpufreq-fixes' and 'pm-core-fixes'

* pm-cpufreq-fixes: cpufreq: dt: Add terminate entry for of_device_id tables * pm-core-fixes: PM / runtime: Add _rcuidle suffix to allow rpm_idle() use from idle PM / runtime: Add _rcuidle suffix to allow rpm_resume() to be called from idle

Rafael J. Wysocki committed 10 years ago

Commit b654c622 parents bd37e02 d7737ce1 file · +5 −5Browse files

Unified · Split

drivers/base/power/runtime.c+5−5
@@ -301,7 +301,7 @@ static int rpm_idle(struct device *dev, int rpmflags) · 300 unmodified lines
301301 int (*callback)(struct device *);
302302 int retval;
303303
304− trace_rpm_idle(dev, rpmflags);
304+ trace_rpm_idle_rcuidle(dev, rpmflags);
305305 retval = rpm_check_suspend_allowed(dev);
306306 if (retval < 0)
307307 ; /* Conditions are wrong. */
@@ -337,7 +337,7 @@ static int rpm_idle(struct device *dev, int rpmflags) · 29 unmodified lines
337337 dev->power.request_pending = true;
338338 queue_work(pm_wq, &dev->power.work);
339339 }
340− trace_rpm_return_int(dev, _THIS_IP_, 0);
340+ trace_rpm_return_int_rcuidle(dev, _THIS_IP_, 0);
341341 return 0;
342342 }
343343
@@ -352,7 +352,7 @@ static int rpm_idle(struct device *dev, int rpmflags) · 8 unmodified lines
352352 wake_up_all(&dev->power.wait_queue);
353353
354354 out:
355− trace_rpm_return_int(dev, _THIS_IP_, retval);
355+ trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval);
356356 return retval ? retval : rpm_suspend(dev, rpmflags | RPM_AUTO);
357357 }
358358
@@ -601,7 +601,7 @@ static int rpm_resume(struct device *dev, int rpmflags) · 242 unmodified lines
601601 struct device *parent = NULL;
602602 int retval = 0;
603603
604− trace_rpm_resume(dev, rpmflags);
604+ trace_rpm_resume_rcuidle(dev, rpmflags);
605605
606606 repeat:
607607 if (dev->power.runtime_error)
@@ -764,7 +764,7 @@ static int rpm_resume(struct device *dev, int rpmflags) · 156 unmodified lines
764764 spin_lock_irq(&dev->power.lock);
765765 }
766766
767− trace_rpm_return_int(dev, _THIS_IP_, retval);
767+ trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval);
768768
769769 return retval;
770770 }