summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2017-04-14 14:59:40 +0530
committerPavankumar Kondeti <pkondeti@codeaurora.org>2017-04-14 15:08:01 +0530
commitb18b2f0cad29109256cfc05e8e677565e4fc2b75 (patch)
tree28e9d3e338145cfc2fa16894a336a8abfb6e842b
parent16c1669252515ff1dd4cac51bdf0934bf7f8cdc8 (diff)
cpu-hotplug: Fix false error message in cpu_up()
An error message is printed even when the task's scheduling class is switched back successfully. Fix the error condition check and print the error value in the message. Change-Id: Ib75c4cfa22d58dd9309542e96096ac4e91f0c3db Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
-rw-r--r--kernel/cpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 0ca3599cee1f..e822cb0e18d5 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -593,8 +593,9 @@ out:
if (!switch_err) {
switch_err = switch_to_fair_policy();
- pr_err("Hotplug policy switch err. Task %s pid=%d\n",
- current->comm, current->pid);
+ if (switch_err)
+ pr_err("Hotplug policy switch err=%d Task %s pid=%d\n",
+ switch_err, current->comm, current->pid);
}
return err;