Skip to content

Commit 6e15cf0

Browse files
author
Ingo Molnar
committed
Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2
Conflicts: arch/parisc/kernel/irq.c arch/x86/include/asm/fixmap_64.h arch/x86/include/asm/setup.h kernel/irq/handle.c Semantic merge: arch/x86/include/asm/fixmap.h Signed-off-by: Ingo Molnar <mingo@elte.hu>
2 parents be0ea69 + 60db564 commit 6e15cf0

465 files changed

Lines changed: 17559 additions & 17715 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/cputopology.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ For an architecture to support this feature, it must define some of
1818
these macros in include/asm-XXX/topology.h:
1919
#define topology_physical_package_id(cpu)
2020
#define topology_core_id(cpu)
21-
#define topology_thread_siblings(cpu)
22-
#define topology_core_siblings(cpu)
21+
#define topology_thread_cpumask(cpu)
22+
#define topology_core_cpumask(cpu)
2323

2424
The type of **_id is int.
25-
The type of siblings is cpumask_t.
25+
The type of siblings is (const) struct cpumask *.
2626

2727
To be consistent on all architectures, include/linux/topology.h
2828
provides default definitions for any of the above macros that are

‎Documentation/kernel-parameters.txt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,13 @@ and is between 256 and 4096 characters. It is defined in the file
13251325

13261326
memtest= [KNL,X86] Enable memtest
13271327
Format: <integer>
1328-
range: 0,4 : pattern number
13291328
default : 0 <disable>
1329+
Specifies the number of memtest passes to be
1330+
performed. Each pass selects another test
1331+
pattern from a given set of patterns. Memtest
1332+
fills the memory with this pattern, validates
1333+
memory contents and reserves bad memory
1334+
regions that are detected.
13301335

13311336
meye.*= [HW] Set MotionEye Camera parameters
13321337
See Documentation/video4linux/meye.txt.

‎Documentation/x86/boot.txt‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Offset Proto Name Meaning
158158
0202/4 2.00+ header Magic signature "HdrS"
159159
0206/2 2.00+ version Boot protocol version supported
160160
0208/4 2.00+ realmode_swtch Boot loader hook (see below)
161-
020C/2 2.00+ start_sys The load-low segment (0x1000) (obsolete)
161+
020C/2 2.00+ start_sys_seg The load-low segment (0x1000) (obsolete)
162162
020E/2 2.00+ kernel_version Pointer to kernel version string
163163
0210/1 2.00+ type_of_loader Boot loader identifier
164164
0211/1 2.00+ loadflags Boot protocol option flags
@@ -170,10 +170,11 @@ Offset Proto Name Meaning
170170
0224/2 2.01+ heap_end_ptr Free memory after setup end
171171
0226/2 N/A pad1 Unused
172172
0228/4 2.02+ cmd_line_ptr 32-bit pointer to the kernel command line
173-
022C/4 2.03+ initrd_addr_max Highest legal initrd address
173+
022C/4 2.03+ ramdisk_max Highest legal initrd address
174174
0230/4 2.05+ kernel_alignment Physical addr alignment required for kernel
175175
0234/1 2.05+ relocatable_kernel Whether kernel is relocatable or not
176-
0235/3 N/A pad2 Unused
176+
0235/1 N/A pad2 Unused
177+
0236/2 N/A pad3 Unused
177178
0238/4 2.06+ cmdline_size Maximum size of the kernel command line
178179
023C/4 2.07+ hardware_subarch Hardware subarchitecture
179180
0240/8 2.07+ hardware_subarch_data Subarchitecture-specific data
@@ -299,14 +300,14 @@ Protocol: 2.00+
299300
e.g. 0x0204 for version 2.04, and 0x0a11 for a hypothetical version
300301
10.17.
301302

302-
Field name: readmode_swtch
303+
Field name: realmode_swtch
303304
Type: modify (optional)
304305
Offset/size: 0x208/4
305306
Protocol: 2.00+
306307

307308
Boot loader hook (see ADVANCED BOOT LOADER HOOKS below.)
308309

309-
Field name: start_sys
310+
Field name: start_sys_seg
310311
Type: read
311312
Offset/size: 0x20c/2
312313
Protocol: 2.00+
@@ -468,7 +469,7 @@ Protocol: 2.02+
468469
zero, the kernel will assume that your boot loader does not support
469470
the 2.02+ protocol.
470471

471-
Field name: initrd_addr_max
472+
Field name: ramdisk_max
472473
Type: read
473474
Offset/size: 0x22c/4
474475
Protocol: 2.03+
@@ -542,7 +543,10 @@ Protocol: 2.08+
542543

543544
The payload may be compressed. The format of both the compressed and
544545
uncompressed data should be determined using the standard magic
545-
numbers. Currently only gzip compressed ELF is used.
546+
numbers. The currently supported compression formats are gzip
547+
(magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A) and LZMA
548+
(magic number 5D 00). The uncompressed payload is currently always ELF
549+
(magic number 7F 45 4C 46).
546550

547551
Field name: payload_length
548552
Type: read

‎Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
533533
endif
534534

535535
# Force gcc to behave correct even for buggy distributions
536-
# Arch Makefiles may override this setting
536+
ifndef CONFIG_CC_STACKPROTECTOR
537537
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
538+
endif
538539

539540
ifdef CONFIG_FRAME_POINTER
540541
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls

‎arch/alpha/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int irq_select_affinity(unsigned int irq)
5555
cpu = (cpu < (NR_CPUS-1) ? cpu + 1 : 0);
5656
last_cpu = cpu;
5757

58-
irq_desc[irq].affinity = cpumask_of_cpu(cpu);
58+
cpumask_copy(irq_desc[irq].affinity, cpumask_of(cpu));
5959
irq_desc[irq].chip->set_affinity(irq, cpumask_of(cpu));
6060
return 0;
6161
}

‎arch/alpha/mm/init.c‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,21 @@ callback_init(void * kernel_end)
189189

190190
if (alpha_using_srm) {
191191
static struct vm_struct console_remap_vm;
192-
unsigned long vaddr = VMALLOC_START;
192+
unsigned long nr_pages = 0;
193+
unsigned long vaddr;
193194
unsigned long i, j;
194195

196+
/* calculate needed size */
197+
for (i = 0; i < crb->map_entries; ++i)
198+
nr_pages += crb->map[i].count;
199+
200+
/* register the vm area */
201+
console_remap_vm.flags = VM_ALLOC;
202+
console_remap_vm.size = nr_pages << PAGE_SHIFT;
203+
vm_area_register_early(&console_remap_vm, PAGE_SIZE);
204+
205+
vaddr = (unsigned long)console_remap_vm.addr;
206+
195207
/* Set up the third level PTEs and update the virtual
196208
addresses of the CRB entries. */
197209
for (i = 0; i < crb->map_entries; ++i) {
@@ -213,12 +225,6 @@ callback_init(void * kernel_end)
213225
vaddr += PAGE_SIZE;
214226
}
215227
}
216-
217-
/* Let vmalloc know that we've allocated some space. */
218-
console_remap_vm.flags = VM_ALLOC;
219-
console_remap_vm.addr = (void *) VMALLOC_START;
220-
console_remap_vm.size = vaddr - VMALLOC_START;
221-
vmlist = &console_remap_vm;
222228
}
223229

224230
callback_init_done = 1;

‎arch/arm/kernel/irq.c‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ static struct irq_desc bad_irq_desc = {
104104
.lock = __SPIN_LOCK_UNLOCKED(bad_irq_desc.lock),
105105
};
106106

107+
#ifdef CONFIG_CPUMASK_OFFSTACK
108+
/* We are not allocating bad_irq_desc.affinity or .pending_mask */
109+
#error "ARM architecture does not support CONFIG_CPUMASK_OFFSTACK."
110+
#endif
111+
107112
/*
108113
* do_IRQ handles all hardware IRQ's. Decoded IRQs should not
109114
* come via this function. Instead, they should provide their
@@ -161,7 +166,7 @@ void __init init_IRQ(void)
161166
irq_desc[irq].status |= IRQ_NOREQUEST | IRQ_NOPROBE;
162167

163168
#ifdef CONFIG_SMP
164-
bad_irq_desc.affinity = CPU_MASK_ALL;
169+
cpumask_setall(bad_irq_desc.affinity);
165170
bad_irq_desc.cpu = smp_processor_id();
166171
#endif
167172
init_arch_irq();
@@ -191,15 +196,16 @@ void migrate_irqs(void)
191196
struct irq_desc *desc = irq_desc + i;
192197

193198
if (desc->cpu == cpu) {
194-
unsigned int newcpu = any_online_cpu(desc->affinity);
195-
196-
if (newcpu == NR_CPUS) {
199+
unsigned int newcpu = cpumask_any_and(desc->affinity,
200+
cpu_online_mask);
201+
if (newcpu >= nr_cpu_ids) {
197202
if (printk_ratelimit())
198203
printk(KERN_INFO "IRQ%u no longer affine to CPU%u\n",
199204
i, cpu);
200205

201-
cpus_setall(desc->affinity);
202-
newcpu = any_online_cpu(desc->affinity);
206+
cpumask_setall(desc->affinity);
207+
newcpu = cpumask_any_and(desc->affinity,
208+
cpu_online_mask);
203209
}
204210

205211
route_irq(desc, i, newcpu);

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ SECTIONS
6464
__initramfs_end = .;
6565
#endif
6666
. = ALIGN(4096);
67+
__per_cpu_load = .;
6768
__per_cpu_start = .;
69+
*(.data.percpu.page_aligned)
6870
*(.data.percpu)
6971
*(.data.percpu.shared_aligned)
7072
__per_cpu_end = .;

‎arch/arm/oprofile/op_model_mpcore.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static void em_route_irq(int irq, unsigned int cpu)
263263
const struct cpumask *mask = cpumask_of(cpu);
264264

265265
spin_lock_irq(&desc->lock);
266-
desc->affinity = *mask;
266+
cpumask_copy(desc->affinity, mask);
267267
desc->chip->set_affinity(irq, mask);
268268
spin_unlock_irq(&desc->lock);
269269
}

‎arch/avr32/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ source "kernel/Kconfig.preempt"
181181
config QUICKLIST
182182
def_bool y
183183

184-
config HAVE_ARCH_BOOTMEM_NODE
184+
config HAVE_ARCH_BOOTMEM
185185
def_bool n
186186

187187
config ARCH_HAVE_MEMORY_PRESENT

0 commit comments

Comments
 (0)