printk/sched: Introduce special printk_sched() for those awkward moments
[firefly-linux-kernel-4.4.55.git] / kernel / sched / rt.c
index 7f7e7cdcb472d21c47ab226bbffeb17700b0f3b5..b60dad720173e6f396eb9216dc81d85cf8b5fdf0 100644 (file)
@@ -864,8 +864,14 @@ static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq)
                 * but accrue some time due to boosting.
                 */
                if (likely(rt_b->rt_runtime)) {
+                       static bool once = false;
+
                        rt_rq->rt_throttled = 1;
-                       printk_once(KERN_WARNING "sched: RT throttling activated\n");
+
+                       if (!once) {
+                               once = true;
+                               printk_sched("sched: RT throttling activated\n");
+                       }
                } else {
                        /*
                         * In case we did anyway, make it go away,