Commit 08820546 authored by Richard Cochran's avatar Richard Cochran Committed by Rafael J. Wysocki

intel_idle: Propagate hot plug errors.

If a cpuidle registration error occurs during the hot plug notifier
callback, we should really inform the hot plug machinery instead of
just ignoring the error.  This patch changes the callback to properly
return on error.
Signed-off-by: default avatarRichard Cochran <rcochran@linutronix.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b69ef2c0
...@@ -818,8 +818,11 @@ static int cpu_hotplug_notify(struct notifier_block *n, ...@@ -818,8 +818,11 @@ static int cpu_hotplug_notify(struct notifier_block *n,
* driver in this case * driver in this case
*/ */
dev = per_cpu_ptr(intel_idle_cpuidle_devices, hotcpu); dev = per_cpu_ptr(intel_idle_cpuidle_devices, hotcpu);
if (!dev->registered) if (dev->registered)
intel_idle_cpu_init(hotcpu); break;
if (intel_idle_cpu_init(hotcpu))
return NOTIFY_BAD;
break; break;
} }
......
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