提交 595258aa 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf_counter: x86: fix 32-bit irq_period assumption

No need to assume the irq_period is 32bit.
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 f541ae32
......@@ -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);
s32 period = hwc->irq_period;
s64 period = hwc->irq_period;
int err;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册