From: Peter Zijlstra Date: Wed, 27 Nov 2013 13:54:38 +0000 (+0000) Subject: perf: Fix PERF_EVENT_IOC_PERIOD to force-reset the period X-Git-Tag: v3.14-rc1~171^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad7192b842c;p=pandora-kernel.git 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-diff-tree failed