From: Peter Zijlstra Date: Tue, 7 Sep 2010 16:32:22 +0000 (+0200) Subject: perf: Optimize context ops X-Git-Tag: v2.6.37-rc1~214^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b9a644fece117cfa5474a2388d6b89d1baf8ddf;p=pandora-kernel.git perf: Optimize context ops Assuming we don't mix events of different pmus onto a single context (with the exeption of software events inside a hardware group) we can now assume that all events on a particular context belong to the same pmu, hence we can disable the pmu for the entire context operations. This reduces the amount of hardware writes. The exception for swevents comes from the fact that the sw pmu disable is a nop. Signed-off-by: Peter Zijlstra Cc: paulus Cc: stephane eranian Cc: Robert Richter Cc: Frederic Weisbecker Cc: Lin Ming Cc: Yanmin LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed