Revert "ARM: 7556/1: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD"
authorWill Deacon <[email protected]>
Wed, 27 Nov 2013 13:54:39 +0000 (13:54 +0000)
committerIngo Molnar <[email protected]>
Tue, 17 Dec 2013 14:21:35 +0000 (15:21 +0100)
This reverts commit 3581fe0ef37ce12ac7a4f74831168352ae848edc.

Fixes to the handling of PERF_EVENT_IOC_PERIOD in the core code mean
we no longer have to play this horrible game.

Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/arm/kernel/perf_event.c

index bc3f2efa0d86b4ff55d6b19833eae688b111fd27..789d846a9184531a1c9c05cc97a54966101a13e2 100644 (file)
@@ -99,10 +99,6 @@ int armpmu_event_set_period(struct perf_event *event)
        s64 period = hwc->sample_period;
        int ret = 0;
 
-       /* The period may have been changed by PERF_EVENT_IOC_PERIOD */
-       if (unlikely(period != hwc->last_period))
-               left = period - (hwc->last_period - left);
-
        if (unlikely(left <= -period)) {
                left = period;
                local64_set(&hwc->period_left, left);