From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756195AbYGIQz0 (ORCPT ); Wed, 9 Jul 2008 12:55:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752927AbYGIQvj (ORCPT ); Wed, 9 Jul 2008 12:51:39 -0400 Received: from relay2.sgi.com ([192.48.171.30]:42828 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751676AbYGIQvb (ORCPT ); Wed, 9 Jul 2008 12:51:31 -0400 Message-Id: <20080709165130.950486000@polaris-admin.engr.sgi.com> References: <20080709165129.292635000@polaris-admin.engr.sgi.com> User-Agent: quilt/0.46-1 Date: Wed, 09 Jul 2008 09:51:41 -0700 From: Mike Travis To: Jeremy Fitzhardinge Cc: Ingo Molnar , Andrew Morton , "Eric W. Biederman" , "H. Peter Anvin" , Christoph Lameter , Jack Steiner , linux-kernel@vger.kernel.org Subject: [RFC 12/15] x86_64: Replace xxx_pda() operations in include_asm-x86_thread_info_h Content-Disposition: inline; filename=incl_pda_ops_include_asm-x86_thread_info_h Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * It is now possible to use percpu operations for pda access since the pda is in the percpu area. Drop the pda operations. Thus: read_pda --> x86_read_percpu write_pda --> x86_write_percpu add_pda (+1) --> x86_inc_percpu or_pda --> x86_or_percpu Based on linux-2.6.tip/master Signed-off-by: Christoph Lameter Signed-off-by: Mike Travis --- include/asm-x86/thread_info.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.tip.orig/include/asm-x86/thread_info.h 2008-07-01 10:41:33.000000000 -0700 +++ linux-2.6.tip/include/asm-x86/thread_info.h 2008-07-01 10:49:15.172370813 -0700 @@ -200,7 +200,8 @@ static inline struct thread_info *curren static inline struct thread_info *current_thread_info(void) { struct thread_info *ti; - ti = (void *)(read_pda(kernelstack) + PDA_STACKOFFSET - THREAD_SIZE); + ti = (void *)(x86_read_percpu(pda.kernelstack) + + PDA_STACKOFFSET - THREAD_SIZE); return ti; } --