Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756912AbcCRSvN (ORCPT ); Fri, 18 Mar 2016 14:51:13 -0400 Received: from mga02.intel.com ([134.134.136.20]:37772 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbcCRSvK convert rfc822-to-8bit (ORCPT ); Fri, 18 Mar 2016 14:51:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,356,1455004800"; d="scan'208";a="69162028" From: "Liang, Kan" To: Thomas Gleixner CC: "peterz@infradead.org" , "ak@linux.intel.com" , "eranian@google.com" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH V2 1/2] x86/perf/intel/uncore: Make Intel uncore modular Thread-Topic: [PATCH V2 1/2] x86/perf/intel/uncore: Make Intel uncore modular Thread-Index: AQHRgUH79tz8hgPjW02IHATta1EEjp9fAOgAgACKkWA= Date: Fri, 18 Mar 2016 18:51:00 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077058A6FD6@SHSMSX103.ccr.corp.intel.com> References: <1458298116-2610-1-git-send-email-kan.liang@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODAxOTI0ZWQtYzI3ZC00ZDQwLWE0MmUtZWRjOWUyZjczZjhmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InI2cm8rMXN6Y09KRWNHNlQ5aDZGb1dGODJrbFlTZnN4R1dJQVBPNEpTZEU9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 30 > > On Fri, 18 Mar 2016, kan.liang@intel.com wrote: > > > From: Kan Liang > > > > This patch makes Intel uncore pmu driver modular. > > By default, the uncore driver will be built in the kernel. If it is > > configured as module, the supported cpu model can be auto loaded. > > This patch also cleans up the code of cpu_init and pci_init. > > Nice work! > > > +static struct intel_uncore_init_fun skl_uncore_init = { > > + .pci_init = skl_uncore_pci_init, > > +}; > > + > > +static const struct x86_cpu_id intel_uncore_match[] = { > > Shouldn't all of these structs be const __initconst? > Thanks for the review. I will fix it in next version. Thanks, Kan > Other than that: > > Reviewed-by: Thomas Gleixner