From bad7192b842c83e580747ca57104dd51fe08c223 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Wed, 27 Nov 2013 13:54:38 +0000 Subject: [PATCH] perf: Fix PERF_EVENT_IOC_PERIOD to force-reset the period Vince Weaver reports that, on all architectures apart from ARM, PERF_EVENT_IOC_PERIOD doesn't actually update the period until the next event fires. This is counter-intuitive behaviour and is better dealt with in the core code. This patch ensures that the period is forcefully reset when dealing with such a request in the core code. A subsequent patch removes the equivalent hack from the ARM back-end. Reported-by: Vince Weaver Signed-off-by: Peter Zijlstra Signed-off-by: Will Deacon Link: http://lkml.kernel.org/r/1385560479-11014-1-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar --- Reading git-format-patch failed