aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/perf_event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/perf_event.c
index 567480705789..ab6f6beadb57 100644
--- a/arch/powerpc/kernel/perf_event.c
+++ b/arch/powerpc/kernel/perf_event.c
@@ -1212,6 +1212,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
1212 if (left <= 0) 1212 if (left <= 0)
1213 left = period; 1213 left = period;
1214 record = 1; 1214 record = 1;
1215 event->hw.last_period = event->hw.sample_period;
1215 } 1216 }
1216 if (left < 0x80000000LL) 1217 if (left < 0x80000000LL)
1217 val = 0x80000000LL - left; 1218 val = 0x80000000LL - left;