Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b32ef636 authored by travis@sgi.com's avatar travis@sgi.com Committed by Ingo Molnar
Browse files

percpu: use a kconfig variable to signal arch specific percpu setup



The use of the __GENERIC_PERCPU is a bit problematic since arches
may want to run their own percpu setup while using the generic
percpu definitions. Replace it through a kconfig variable.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cf8fa920
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -80,6 +80,9 @@ config GENERIC_TIME_VSYSCALL
	bool
	default y

config ARCH_SETS_UP_PER_CPU_AREA
	def_bool y

config DMI
	bool
	default y
+3 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@ config GENERIC_HARDIRQS
	bool
	default y

config ARCH_SETS_UP_PER_CPU_AREA
	def_bool PPC64

config IRQ_PER_CPU
	bool
	default y
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ config AUDIT_ARCH
	bool
	default y

config ARCH_SETS_UP_PER_CPU_AREA
	def_bool y

config ARCH_NO_VIRT_TO_BUS
	def_bool y

+3 −0
Original line number Diff line number Diff line
@@ -97,6 +97,9 @@ config GENERIC_TIME_VSYSCALL
	bool
	default X86_64

config ARCH_SETS_UP_PER_CPU_AREA
	def_bool X86_64

config ARCH_SUPPORTS_OPROFILE
	bool
	default y
+0 −1
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
#include <linux/compiler.h>
#include <linux/threads.h>

#define __GENERIC_PER_CPU
#ifdef CONFIG_SMP

extern unsigned long __per_cpu_offset[NR_CPUS];
Loading