提交 e919cfd4 编写于 作者: J John Stultz

time: Avoid scary backtraces when warning of > 11% adj

Folks have been getting a number of warnings about time
adjustments > 11%. The WARN_ON leaves a big useless backtrace
so this patch removes it for a printk_once().

I'm still working to narrow down the cause of the > 11% adjustment.
Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
上级 ad30dfa9
...@@ -869,13 +869,15 @@ static void timekeeping_adjust(s64 offset) ...@@ -869,13 +869,15 @@ static void timekeeping_adjust(s64 offset)
} else /* No adjustment needed */ } else /* No adjustment needed */
return; return;
WARN_ONCE(timekeeper.clock->maxadj && if (unlikely(timekeeper.clock->maxadj &&
(timekeeper.mult + adj > timekeeper.clock->mult + (timekeeper.mult + adj >
timekeeper.clock->maxadj), timekeeper.clock->mult + timekeeper.clock->maxadj))) {
"Adjusting %s more then 11%% (%ld vs %ld)\n", printk_once(KERN_WARNING
"Adjusting %s more than 11%% (%ld vs %ld)\n",
timekeeper.clock->name, (long)timekeeper.mult + adj, timekeeper.clock->name, (long)timekeeper.mult + adj,
(long)timekeeper.clock->mult + (long)timekeeper.clock->mult +
timekeeper.clock->maxadj); timekeeper.clock->maxadj);
}
/* /*
* So the following can be confusing. * So the following can be confusing.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册