Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 595258aa authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

perf_counter: x86: fix 32-bit irq_period assumption



No need to assume the irq_period is 32bit.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f541ae32
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -449,7 +449,7 @@ __hw_perf_counter_set_period(struct perf_counter *counter,
			     struct hw_perf_counter *hwc, int idx)
			     struct hw_perf_counter *hwc, int idx)
{
{
	s64 left = atomic64_read(&hwc->period_left);
	s64 left = atomic64_read(&hwc->period_left);
	s32 period = hwc->irq_period;
	s64 period = hwc->irq_period;
	int err;
	int err;


	/*
	/*