From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756014Ab0EUOUp (ORCPT ); Fri, 21 May 2010 10:20:45 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:54474 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754001Ab0EUOUn (ORCPT ); Fri, 21 May 2010 10:20:43 -0400 Message-Id: <20100521134205.781916350@chello.nl> User-Agent: quilt/0.47-1 Date: Fri, 21 May 2010 15:42:05 +0200 From: Peter Zijlstra To: Ingo Molnar , Paul Mackerras , Arnaldo Carvalho de Melo Cc: Frederic Weisbecker , Steven Rostedt , David Miller , Paul Mundt , Will Deacon , Deng-Cheng Zhu , Peter Zijlstra , LKML Subject: [PATCH 0/4] convert perf to local64_t Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches introduce local64_t. Since perf_event:count is only modified cross-cpu when child-counters feed back their changes on exit, and we can use a secondary variable for that, we can convert perf to use local64_t instead of atomic64_t and use instructions without buslock semantics. The local64_t implementation uses local_t for 64 bits, since local_t is of type long, for 32 bit it falls back to atomic64_t. Architectures can provide their own implementation as usual.