Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757556Ab1DMQxb (ORCPT ); Wed, 13 Apr 2011 12:53:31 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59504 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756973Ab1DMQx3 (ORCPT ); Wed, 13 Apr 2011 12:53:29 -0400 Message-ID: <4DA5D4D8.7000902@zytor.com> Date: Wed, 13 Apr 2011 09:52:40 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110403 Fedora/3.1.9-6.fc15 Thunderbird/3.1.9 MIME-Version: 1.0 To: Frank Arnold CC: Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: Clean up mwait_play_dead References: <1302711073-31985-1-git-send-email-farnold@amd64.org> In-Reply-To: <1302711073-31985-1-git-send-email-farnold@amd64.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 32 On 04/13/2011 09:11 AM, Frank Arnold wrote: > From: Frank Arnold > > Commit 93789b32dbf355e70f18b17a82e8661677a7f7fb introduced > cpuinfo_x86 *c for brevity. It is used to check for the > mwait feature flag. The same can be done with a subsequent > check for clflsh and save us a second per-cpu pointer > dereference. > > Signed-off-by: Frank Arnold > Acked-by: Borislav Petkov > --- > arch/x86/kernel/smpboot.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > This should be using this_cpu_has()... if that's not in the tree yet we should add it. Creating an absolute pointer for a percpu references is a big lose. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/