提交 f1a70bac 编写于 作者: R Rafael J. Wysocki

ACPI: processor: perflib: Adjust acpi_processor_notify_smm() return value

Avoid returning a confusing error code from acpi_processor_notify_smm()
if it is called for the second time in the case when SMM notification
regarding P-state control is not supported.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 be5c8a04
......@@ -475,10 +475,12 @@ int acpi_processor_notify_smm(struct module *calling_module)
result = acpi_processor_pstate_control();
if (result <= 0) {
if (!result)
if (result) {
is_done = result;
} else {
pr_debug("No SMI port or pstate_control\n");
is_done = -EIO;
is_done = 1;
}
goto out_put;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册