aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 22:11:50 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 22:11:50 -0500
commit3aacd625f20129f5a41ea3ff3b5353b0e4dabd01 (patch)
tree7cf4ea65397f80098b30494df31cfc8f5fa26d63 /arch/mips
parent7e21774db5cc9cf8fe93a64a2f0c6cf47db8ab24 (diff)
parent2a1d689c9ba42a6066540fb221b6ecbd6298b728 (diff)
Merge branch 'akpm' (incoming from Andrew)
Merge second patch-bomb from Andrew Morton: - various misc bits - the rest of MM - add generic fixmap.h, use it - backlight updates - dynamic_debug updates - printk() updates - checkpatch updates - binfmt_elf - ramfs - init/ - autofs4 - drivers/rtc - nilfs - hfsplus - Documentation/ - coredump - procfs - fork - exec - kexec - kdump - partitions - rapidio - rbtree - userns - memstick - w1 - decompressors * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (197 commits) lib/decompress_unlz4.c: always set an error return code on failures romfs: fix returm err while getting inode in fill_super drivers/w1/masters/w1-gpio.c: add strong pullup emulation drivers/memstick/host/rtsx_pci_ms.c: fix ms card data transfer bug userns: relax the posix_acl_valid() checks arch/sh/kernel/dwarf.c: use rbtree postorder iteration helper instead of solution using repeated rb_erase() fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix fs/ext3: use rbtree postorder iteration helper instead of opencoding fs/jffs2: use rbtree postorder iteration helper instead of opencoding fs/ext4: use rbtree postorder iteration helper instead of opencoding fs/ubifs: use rbtree postorder iteration helper instead of opencoding net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead of opencoding rbtree/test: test rbtree_postorder_for_each_entry_safe() rbtree/test: move rb_node to the middle of the test struct rapidio: add modular rapidio core build into powerpc and mips branches partitions/efi: complete documentation of gpt kernel param purpose kdump: add /sys/kernel/vmcoreinfo ABI documentation kdump: fix exported size of vmcoreinfo note kexec: add sysctl to disable kexec_load fs/exec.c: call arch_pick_mmap_layout() only once ...
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kconfig10
-rw-r--r--arch/mips/include/asm/fixmap.h33
2 files changed, 6 insertions, 37 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index c93d92beb3d6..52dac06ea6b4 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2129,13 +2129,13 @@ config SMP
2129 depends on SYS_SUPPORTS_SMP 2129 depends on SYS_SUPPORTS_SMP
2130 help 2130 help
2131 This enables support for systems with more than one CPU. If you have 2131 This enables support for systems with more than one CPU. If you have
2132 a system with only one CPU, like most personal computers, say N. If 2132 a system with only one CPU, say N. If you have a system with more
2133 you have a system with more than one CPU, say Y. 2133 than one CPU, say Y.
2134 2134
2135 If you say N here, the kernel will run on single and multiprocessor 2135 If you say N here, the kernel will run on uni- and multiprocessor
2136 machines, but will use only one CPU of a multiprocessor machine. If 2136 machines, but will use only one CPU of a multiprocessor machine. If
2137 you say Y here, the kernel will run on many, but not all, 2137 you say Y here, the kernel will run on many, but not all,
2138 singleprocessor machines. On a singleprocessor machine, the kernel 2138 uniprocessor machines. On a uniprocessor machine, the kernel
2139 will run faster if you say N here. 2139 will run faster if you say N here.
2140 2140
2141 People using multiprocessor machines who say Y here should also say 2141 People using multiprocessor machines who say Y here should also say
@@ -2430,7 +2430,7 @@ source "drivers/pcmcia/Kconfig"
2430source "drivers/pci/hotplug/Kconfig" 2430source "drivers/pci/hotplug/Kconfig"
2431 2431
2432config RAPIDIO 2432config RAPIDIO
2433 bool "RapidIO support" 2433 tristate "RapidIO support"
2434 depends on PCI 2434 depends on PCI
2435 default n 2435 default n
2436 help 2436 help
diff --git a/arch/mips/include/asm/fixmap.h b/arch/mips/include/asm/fixmap.h
index dfaaf493e9d4..8c012af2f451 100644
--- a/arch/mips/include/asm/fixmap.h
+++ b/arch/mips/include/asm/fixmap.h
@@ -71,38 +71,7 @@ enum fixed_addresses {
71#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 71#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
72#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) 72#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
73 73
74#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) 74#include <asm-generic/fixmap.h>
75#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
76
77extern void __this_fixmap_does_not_exist(void);
78
79/*
80 * 'index to address' translation. If anyone tries to use the idx
81 * directly without tranlation, we catch the bug with a NULL-deference
82 * kernel oops. Illegal ranges of incoming indices are caught too.
83 */
84static inline unsigned long fix_to_virt(const unsigned int idx)
85{
86 /*
87 * this branch gets completely eliminated after inlining,
88 * except when someone tries to use fixaddr indices in an
89 * illegal way. (such as mixing up address types or using
90 * out-of-range indices).
91 *
92 * If it doesn't get removed, the linker will complain
93 * loudly with a reasonably clear error message..
94 */
95 if (idx >= __end_of_fixed_addresses)
96 __this_fixmap_does_not_exist();
97
98 return __fix_to_virt(idx);
99}
100
101static inline unsigned long virt_to_fix(const unsigned long vaddr)
102{
103 BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
104 return __virt_to_fix(vaddr);
105}
106 75
107#define kmap_get_fixmap_pte(vaddr) \ 76#define kmap_get_fixmap_pte(vaddr) \
108 pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), (vaddr)) 77 pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), (vaddr))