Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934740AbcCOQdy (ORCPT ); Tue, 15 Mar 2016 12:33:54 -0400 Received: from mail.skyhub.de ([78.46.96.112]:40050 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934192AbcCOQdv (ORCPT ); Tue, 15 Mar 2016 12:33:51 -0400 Date: Tue, 15 Mar 2016 17:33:26 +0100 From: Borislav Petkov To: Toshi Kani Cc: "Luis R. Rodriguez" , "mingo@kernel.org" , "hpa@zytor.com" , "tglx@linutronix.de" , "jgross@suse.com" , "paul.gortmaker@windriver.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "boris.ostrovsky@oracle.com" Subject: Re: [PATCH 1/2] x86/mm/pat: Change pat_disable() to emulate PAT table Message-ID: <20160315163326.GH4559@pd.tnic> References: <1457713660.6393.55.camel@hpe.com> <20160311155439.GF4312@pd.tnic> <1457724504.6393.151.camel@hpe.com> <20160312115544.GA23410@pd.tnic> <20160315002921.GG25147@wotan.suse.de> <1458011476.6393.327.camel@hpe.com> <20160315110148.GC4559@pd.tnic> <1458056595.6393.332.camel@hpe.com> <20160315154731.GD4559@pd.tnic> <1458061883.6393.359.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1458061883.6393.359.camel@hpe.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 349 Lines: 14 On Tue, Mar 15, 2016 at 11:11:23AM -0600, Toshi Kani wrote: > While cpu_has_pat is the same as boot_cpu_has(X86_FEATURE_PAT), cpu_has_XXX > should not be used.  So, this code needs to be changed to use > boot_cpu_has(X86_FEATURE_PAT) directly. > > Is this right? Yes. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.