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:
f541ae3
)
perf_counter: x86: fix 32-bit irq_period assumption
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Fri, 13 Mar 2009 11:21:28 +0000
(12:21 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 6 Apr 2009 07:29:29 +0000
(09:29 +0200)
No need to assume the irq_period is 32bit.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_counter.c
b/arch/x86/kernel/cpu/perf_counter.c
index 155bc3c239b63fa5388b9f85684b6c0185e3657a..1cedc3468ce5b85f1a91db1938631f882c4de64c 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_counter.c
+++ b/
arch/x86/kernel/cpu/perf_counter.c
@@
-449,7
+449,7
@@
__hw_perf_counter_set_period(struct perf_counter *counter,
struct hw_perf_counter *hwc, int idx)
{
s64 left = atomic64_read(&hwc->period_left);
- s
32
period = hwc->irq_period;
+ s
64
period = hwc->irq_period;
int err;
/*