summaryrefslogtreecommitdiff
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorPrateek Sood <prsood@codeaurora.org>2017-05-11 17:02:29 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-25 23:45:21 -0700
commitce3ef1df548ef1fe338d37bf873ed71ddae39f3c (patch)
treea7f5b499bed771f66ff8f9f8480f6925d2e1f6c3 /kernel/cpu.c
parenta37c10a168059d04b2072edd5d647a65e41aa2f3 (diff)
hotplug cpu: ratelimit logs for thermal veto
Thermal notifier callback is not allowing CPU to come online. Rate limit logs to avoid watchdog non-secure bite as it is a valid rejection due to high temperature of SOC. Change-Id: If3f8df7370e6ffd18b50e7451431d6a26023359d Signed-off-by: Prateek Sood <prsood@codeaurora.org>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 87b88e8c0233..1d6b0a209bc0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -523,8 +523,8 @@ static int _cpu_up(unsigned int cpu, int tasks_frozen)
ret = __cpu_notify(CPU_UP_PREPARE | mod, hcpu, -1, &nr_calls);
if (ret) {
nr_calls--;
- pr_warn("%s: attempt to bring up CPU %u failed\n",
- __func__, cpu);
+ pr_warn_ratelimited("%s: attempt to bring up CPU %u failed\n",
+ __func__, cpu);
goto out_notify;
}