android_kernel_xiaomi_sm8350/arch/mips/include/asm
Anton Blanchard d797396f33 MIPS: cpumask_of_node() should handle -1 as a node
pcibus_to_node can return -1 if we cannot determine which node a pci bus
is on. If passed -1, cpumask_of_node will negatively index the lookup array
and pull in random data:

# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpus
00000000,00000003,00000000,00000000
# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpulist
64-65

Change cpumask_of_node to check for -1 and return cpu_all_mask in this
case:

# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpus
ffffffff,ffffffff,ffffffff,ffffffff
# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpulist
0-127

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Patchwork: http://patchwork.linux-mips.org/patch/831/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-01-12 18:19:37 +01:00
..
dec
emma
fw
ip32
lasat
mach-ar7 MIPS: AR7: register watchdog device only if enabled in hw configuration 2009-11-02 12:00:03 +01:00
mach-au1x00 MIPS: AU1000: Fix build failure for db1x00 configured for Au1100 SoC 2009-11-02 12:00:03 +01:00
mach-bcm47xx
mach-bcm63xx MIPS: BCM63xx: Make bcm63xx_uart_register an initfunc 2009-11-02 12:00:03 +01:00
mach-cavium-octeon
mach-cobalt
mach-db1x00
mach-dec
mach-emma2rh
mach-generic
mach-ip22
mach-ip27 MIPS: cpumask_of_node() should handle -1 as a node 2010-01-12 18:19:37 +01:00
mach-ip28
mach-ip32
mach-jazz
mach-lasat
mach-loongson MIPS: Loongson: Cleanups of serial port support 2009-12-17 01:57:34 +00:00
mach-malta
mach-mipssim
mach-pb1x00
mach-pnx833x tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
mach-pnx8550
mach-powertv MIPS: PowerTV: Base files for Cisco PowerTV platform 2009-12-17 01:57:17 +00:00
mach-rc32434
mach-rm
mach-sibyte
mach-tx39xx
mach-tx49xx
mach-vr41xx
mach-wrppmc
mach-yosemite
mips-boards MIPS: Bonito64: Make Loongson independent from Bonito64 code. 2009-12-17 01:57:06 +00:00
octeon MIPS: Modularize COP2 handling 2009-12-17 01:57:30 +00:00
pci
pmc-sierra/msp71xx
sgi tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
sibyte tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
sn tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
txx9
vr41xx
xtalk
abi.h
addrspace.h
amon.h
asm-offsets.h kbuild: move asm-offsets.h to include/generated 2009-12-12 13:08:14 +01:00
asm.h
asmmacro-32.h
asmmacro-64.h
asmmacro.h
atomic.h
auxvec.h
barrier.h
bcache.h
bitops.h
bitsperlong.h
bootinfo.h MIPS: Lemote 2F: Add Lynloong support 2009-12-17 01:57:18 +00:00
branch.h
break.h
bug.h MIPS: Convert BUG() to use unreachable() 2009-12-05 09:10:12 -08:00
bugs.h
byteorder.h
cache.h
cachectl.h
cacheflush.h block: add helpers to run flush_dcache_page() against a bio and a request's pages 2009-11-26 09:16:19 +01:00
cacheops.h
cevt-r4k.h
checksum.h
clock.h MIPS: Loongson 2F: Add CPU frequency scaling support 2009-12-17 01:57:20 +00:00
cmp.h
cmpxchg.h
compat-signal.h
compat.h
compiler.h
cop2.h MIPS: Modularize COP2 handling 2009-12-17 01:57:30 +00:00
cpu-features.h
cpu-info.h
cpu.h MIPS: Loongson 2F: Add CPU frequency scaling support 2009-12-17 01:57:20 +00:00
cputime.h
current.h
debug.h
delay.h
device.h
div64.h
dma-mapping.h MIPS: Add DMA declare coherent memory support 2009-11-13 18:10:37 +01:00
dma.h
ds1287.h
dsp.h
edac.h
elf.h elf: kill USE_ELF_CORE_DUMP 2009-12-16 07:20:12 -08:00
emergency-restart.h
errno.h
fb.h
fcntl.h fix up O_SYNC comments 2009-12-17 11:03:24 -05:00
fixmap.h MIPS: Fix machine check exception in kmap_coherent() 2009-11-02 12:00:04 +01:00
floppy.h
fpregdef.h
fpu_emulator.h MIPS: Collect FPU emulator statistics per-CPU. 2009-12-17 01:57:08 +00:00
fpu.h MIPS: Cleanup signal code initialization 2009-12-17 01:57:32 +00:00
ftrace.h MIPS: Tracing: Make ftrace for MIPS work without -fno-omit-frame-pointer 2009-12-17 01:57:25 +00:00
futex.h
gcmpregs.h MIPS: GIC: Random fixes and enhancements. 2009-11-02 12:00:06 +01:00
gic.h MIPS: GIC: Random fixes and enhancements. 2009-11-02 12:00:06 +01:00
gpio.h
gt64120.h
hardirq.h
hazards.h
highmem.h
hugetlb.h
hw_irq.h
i8253.h
i8259.h
ide.h
inst.h
io.h
ioctl.h
ioctls.h
ipcbuf.h
irq_cpu.h
irq_gt641xx.h
irq_regs.h
irq.h MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS 2009-12-17 01:57:24 +00:00
irqflags.h
isadep.h
jazz.h
jazzdma.h
Kbuild
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kspd.h
linkage.h
local.h
m48t37.h
mc146818-time.h
mc146818rtc.h
mips_mt.h
mipsmtregs.h
mipsprom.h
mipsregs.h
mman.h MIPS: Add missing definition for MADV_HWPOISON. 2009-12-01 16:21:25 +00:00
mmu_context.h MIPS: Put PGD in C0_CONTEXT for 64-bit R2 processors. 2009-12-17 01:57:01 +00:00
mmu.h
mmzone.h
module.h
msc01_ic.h
msgbuf.h
mutex.h
nile4.h
paccess.h
page.h
param.h
parport.h
pci.h
percpu.h
pgalloc.h
pgtable-32.h
pgtable-64.h
pgtable-bits.h
pgtable.h MIPS: Add support for uncached accelerated mappings. 2009-12-17 01:57:15 +00:00
pmon.h
poll.h
posix_types.h
prefetch.h
processor.h
ptrace.h
r4k-timer.h
r4kcache.h
reboot.h
reg.h
regdef.h
resource.h
rm9k-ocd.h
rtlx.h
scatterlist.h
seccomp.h
sections.h
segment.h
sembuf.h
serial.h
setup.h MIPS: Extend COMMAND_LINE_SIZE 2009-11-02 12:00:01 +01:00
sgialib.h MIPS: IP22: Remove an unused function 2009-12-17 01:56:56 +00:00
sgiarcs.h
sgidefs.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sim.h
smp-ops.h cpumask: arch_send_call_function_ipi_mask: mips 2009-09-24 09:34:45 +09:30
smp.h MIPS: SMP: Inline arch_send_call_function_{single_ipi,ipi_mask} 2009-09-30 21:47:00 +02:00
smtc_ipi.h MIPS: SMTC: Avoid queing multiple reschedule IPIs 2009-11-02 12:00:06 +01:00
smtc_proc.h
smtc.h
smvp.h
sni.h
socket.h net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
sockios.h
sparsemem.h
spinlock_types.h locking: Convert raw_rwlock to arch_rwlock 2009-12-14 23:55:32 +01:00
spinlock.h locking: Convert raw_rwlock functions to arch_rwlock 2009-12-14 23:55:32 +01:00
spram.h MIPS: SPRAM: Clean up support code a little 2009-11-02 12:00:05 +01:00
stackframe.h MIPS: Put PGD in C0_CONTEXT for 64-bit R2 processors. 2009-12-17 01:57:01 +00:00
stacktrace.h
stat.h
statfs.h
string.h
suspend.h
swab.h
sysmips.h
system.h MIPS: Fix build error if __xchg() is not getting inlined. 2009-12-01 16:21:25 +00:00
termbits.h
termios.h
thread_info.h MIPS: Cleanup CONFIG_DEBUG_STACK_USAGE version of alloc_thread_info. 2009-11-02 12:00:01 +01:00
time.h mips: Use generic mult/shift factor calculation for clocks 2009-11-13 20:46:24 +01:00
timex.h
titan_dep.h
tlb.h
tlbdebug.h
tlbflush.h
topology.h
traps.h
txx9irq.h
txx9pio.h
txx9tmr.h
types.h
uaccess.h
ucontext.h
unaligned.h MIPS: Avoid spurious make includecheck message 2009-09-30 21:47:02 +02:00
unistd.h MIPS: Wire up recvmmsg syscall 2009-12-01 16:15:49 -08:00
user.h
vga.h
vpe.h
war.h
watch.h
wbflush.h
xor.h