From: Thomas Gleixner Date: Tue, 19 May 2015 00:00:53 +0000 (+0000) Subject: perf/x86/intel/cqm: Remove pointless spinlock from state cache X-Git-Tag: omap-for-v4.3/legacy-v2-signed~210^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e7eaac95af6c1aecaf558b8c7a1757d5f2d2ad7;p=pandora-kernel.git perf/x86/intel/cqm: Remove pointless spinlock from state cache 'struct intel_cqm_state' is a strict per CPU cache of the rmid and the usage counter. It can never be modified from a remote CPU. The three functions which modify the content: intel_cqm_event[start|stop|del] (del maps to stop) are called from the perf core with interrupts disabled which is enough protection for the per CPU state values. Signed-off-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Acked-by: Matt Fleming Cc: Kanaka Juvva Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Vikas Shivappa Cc: Will Auld Link: http://lkml.kernel.org/r/20150518235150.001006529@linutronix.de Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed