projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df43510
)
x86: add warning to check_tsc_warp()
author
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:33:24 +0000
(13:33 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:33:24 +0000
(13:33 +0100)
add warning to check_tsc_warp() - if get_cycles() does not progress.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_sync.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/tsc_sync.c
b/arch/x86/kernel/tsc_sync.c
index 7110078f242cd39ad76d0c8c554214f42ada36b7..0577825cf89bad5ecdac456fa13d12f4b8e2fa0e 100644
(file)
--- a/
arch/x86/kernel/tsc_sync.c
+++ b/
arch/x86/kernel/tsc_sync.c
@@
-87,7
+87,11
@@
static __cpuinit void check_tsc_warp(void)
nr_warps++;
__raw_spin_unlock(&sync_lock);
}
-
+ }
+ if (!(now-start)) {
+ printk("Warning: zero tsc calibration delta: %Ld [max: %Ld]\n",
+ now-start, end-start);
+ WARN_ON(1);
}
}