Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446Ab1CYRWT (ORCPT ); Fri, 25 Mar 2011 13:22:19 -0400 Received: from one.firstfloor.org ([213.235.205.2]:36735 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851Ab1CYRWS (ORCPT ); Fri, 25 Mar 2011 13:22:18 -0400 Date: Fri, 25 Mar 2011 18:22:17 +0100 From: Andi Kleen To: Ingo Molnar Cc: Eric Dumazet , Andi Kleen , Linus Torvalds , Jack Steiner , Jan Beulich , Borislav Petkov , Peter Zijlstra , Nick Piggin , "x86@kernel.org" , Thomas Gleixner , Andrew Morton , Ingo Molnar , tee@sgi.com, Nikanth Karthikesan , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" Subject: Re: [PATCH RFC] x86: avoid atomic operation in test_and_set_bit_lock if possible Message-ID: <20110325172217.GP21838@one.firstfloor.org> References: <20110324173020.GA26761@sgi.com> <20110324200010.GB7957@elte.hu> <1300999682.2714.23.camel@edumazet-laptop> <20110324205422.GB2393@elte.hu> <1301000557.2714.33.camel@edumazet-laptop> <20110324235654.GM21838@one.firstfloor.org> <1301032040.2714.569.camel@edumazet-laptop> <20110325093228.GB13640@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110325093228.GB13640@elte.hu> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 428 Lines: 11 > Could you please try the patch below? This is very likely not a good idea. I heard some systems can hang if you overwrite their PMUs this way and you're unlucky enough :-( -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/