From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932074AbcBVMAg (ORCPT ); Mon, 22 Feb 2016 07:00:36 -0500 Received: from www.linutronix.de ([62.245.132.108]:33651 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754775AbcBVMAe (ORCPT ); Mon, 22 Feb 2016 07:00:34 -0500 Date: Mon, 22 Feb 2016 12:59:17 +0100 (CET) From: Thomas Gleixner To: Peter Zijlstra cc: LKML , x86@kernel.org, Borislav Petkov , Stephane Eranian , Harish Chegondi , Kan Liang , Andi Kleen , Jacob Pan Subject: Re: [patch V2 13/28] x86/perf/intel_uncore: Clear all hardware state on exit In-Reply-To: <20160222115827.GC6357@twins.programming.kicks-ass.net> Message-ID: References: <20160222110337.198341739@linutronix.de> <20160222110441.279798424@linutronix.de> <20160222115827.GC6357@twins.programming.kicks-ass.net> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Feb 2016, Peter Zijlstra wrote: > On Mon, Feb 22, 2016 at 11:06:52AM -0000, Thomas Gleixner wrote: > > +static void __init uncore_exit_boxes(void *dummy) > > +{ > > + struct intel_uncore_type **types = uncore_msr_uncores; > > + > > + while (*types) > > + __uncore_exit_boxes(*types++, smp_processor_id()); > > for (types = uncore_msr_uncores; *types; types++) > __uncore_exit_boxes(*types, smp_processor_id()); > > > +} > > You flipped to for() loops in the other places, figures this one should > match? Yes. Forgot about that one.