The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>,
	Waiman Long <longman@redhat.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org,
	Richard Henderson <rth@twiddle.net>
Subject: [PATCH 2/2] x86: Enable named address spaces for percpu data
Date: Wed, 12 Sep 2018 07:44:42 -0700	[thread overview]
Message-ID: <20180912144442.29271-3-willy@infradead.org> (raw)
In-Reply-To: <20180912144442.29271-1-willy@infradead.org>

From: Richard Henderson <rth@twiddle.net>

For ease of disabling this feature, split the actual enabling into its
own patch.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
---
 arch/x86/include/asm/percpu.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h
index 30a08d0d95ee..f3c5eebcbc86 100644
--- a/arch/x86/include/asm/percpu.h
+++ b/arch/x86/include/asm/percpu.h
@@ -5,9 +5,15 @@
 #ifdef CONFIG_X86_64
 #define __percpu_seg		gs
 #define __percpu_mov_op		movq
+# ifdef __SEG_GS
+#  define __percpu_addrspace	__seg_gs
+# endif
 #else
 #define __percpu_seg		fs
 #define __percpu_mov_op		movl
+# ifdef __SEG_FS
+#  define __percpu_addrspace	__seg_fs
+# endif
 #endif
 
 #ifdef __ASSEMBLY__
-- 
2.18.0


  parent reply	other threads:[~2018-09-12 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12 14:44 [PATCH 0/2] Use named address spaces for percpu data Matthew Wilcox
2018-09-12 14:44 ` [PATCH 1/2] x86: Use named address spaces in asm/percpu.h Matthew Wilcox
2018-09-12 14:44 ` Matthew Wilcox [this message]
2018-09-12 15:08 ` [PATCH 0/2] Use named address spaces for percpu data Richard Henderson
2018-09-12 21:06   ` Ingo Molnar
2018-09-12 21:08     ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180912144442.29271-3-willy@infradead.org \
    --to=willy@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mingo@kernel.org \
    --cc=rth@twiddle.net \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox