projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing: Do not add event files for modules that fail tracepoints
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
time
/
jiffies.c
diff --git
a/kernel/time/jiffies.c
b/kernel/time/jiffies.c
index 7a925ba456fb5d617d19b98daf2ca39356c4eca6..a6a5bf53e86d25575f90518399407a4fb65a85ed 100644
(file)
--- a/
kernel/time/jiffies.c
+++ b/
kernel/time/jiffies.c
@@
-51,7
+51,13
@@
* HZ shrinks, so values greater than 8 overflow 32bits when
* HZ=100.
*/
+#if HZ < 34
+#define JIFFIES_SHIFT 6
+#elif HZ < 67
+#define JIFFIES_SHIFT 7
+#else
#define JIFFIES_SHIFT 8
+#endif
static cycle_t jiffies_read(struct clocksource *cs)
{