diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 22:11:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 22:11:50 -0500 |
commit | 3aacd625f20129f5a41ea3ff3b5353b0e4dabd01 (patch) | |
tree | 7cf4ea65397f80098b30494df31cfc8f5fa26d63 /arch/sh | |
parent | 7e21774db5cc9cf8fe93a64a2f0c6cf47db8ab24 (diff) | |
parent | 2a1d689c9ba42a6066540fb221b6ecbd6298b728 (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/sh')
-rw-r--r-- | arch/sh/Kconfig | 8 | ||||
-rw-r--r-- | arch/sh/include/asm/fixmap.h | 39 | ||||
-rw-r--r-- | arch/sh/kernel/dwarf.c | 18 |
3 files changed, 10 insertions, 55 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index ce298317a73e..6357710753d5 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -701,13 +701,13 @@ config SMP | |||
701 | depends on SYS_SUPPORTS_SMP | 701 | depends on SYS_SUPPORTS_SMP |
702 | ---help--- | 702 | ---help--- |
703 | This enables support for systems with more than one CPU. If you have | 703 | This enables support for systems with more than one CPU. If you have |
704 | a system with only one CPU, like most personal computers, say N. If | 704 | a system with only one CPU, say N. If you have a system with more |
705 | you have a system with more than one CPU, say Y. | 705 | than one CPU, say Y. |
706 | 706 | ||
707 | If you say N here, the kernel will run on single and multiprocessor | 707 | If you say N here, the kernel will run on uni- and multiprocessor |
708 | machines, but will use only one CPU of a multiprocessor machine. If | 708 | machines, but will use only one CPU of a multiprocessor machine. If |
709 | you say Y here, the kernel will run on many, but not all, | 709 | you say Y here, the kernel will run on many, but not all, |
710 | singleprocessor machines. On a singleprocessor machine, the kernel | 710 | uniprocessor machines. On a uniprocessor machine, the kernel |
711 | will run faster if you say N here. | 711 | will run faster if you say N here. |
712 | 712 | ||
713 | People using multiprocessor machines who say Y here should also say | 713 | People using multiprocessor machines who say Y here should also say |
diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index cbe0186b6794..4daf91c3b725 100644 --- a/arch/sh/include/asm/fixmap.h +++ b/arch/sh/include/asm/fixmap.h | |||
@@ -79,13 +79,6 @@ extern void __set_fixmap(enum fixed_addresses idx, | |||
79 | unsigned long phys, pgprot_t flags); | 79 | unsigned long phys, pgprot_t flags); |
80 | extern void __clear_fixmap(enum fixed_addresses idx, pgprot_t flags); | 80 | extern void __clear_fixmap(enum fixed_addresses idx, pgprot_t flags); |
81 | 81 | ||
82 | #define set_fixmap(idx, phys) \ | ||
83 | __set_fixmap(idx, phys, PAGE_KERNEL) | ||
84 | /* | ||
85 | * Some hardware wants to get fixmapped without caching. | ||
86 | */ | ||
87 | #define set_fixmap_nocache(idx, phys) \ | ||
88 | __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE) | ||
89 | /* | 82 | /* |
90 | * used by vmalloc.c. | 83 | * used by vmalloc.c. |
91 | * | 84 | * |
@@ -101,36 +94,8 @@ extern void __clear_fixmap(enum fixed_addresses idx, pgprot_t flags); | |||
101 | #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) | 94 | #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) |
102 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) | 95 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) |
103 | 96 | ||
104 | #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) | 97 | #define FIXMAP_PAGE_NOCACHE PAGE_KERNEL_NOCACHE |
105 | #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT) | ||
106 | |||
107 | extern void __this_fixmap_does_not_exist(void); | ||
108 | |||
109 | /* | ||
110 | * 'index to address' translation. If anyone tries to use the idx | ||
111 | * directly without tranlation, we catch the bug with a NULL-deference | ||
112 | * kernel oops. Illegal ranges of incoming indices are caught too. | ||
113 | */ | ||
114 | static inline unsigned long fix_to_virt(const unsigned int idx) | ||
115 | { | ||
116 | /* | ||
117 | * this branch gets completely eliminated after inlining, | ||
118 | * except when someone tries to use fixaddr indices in an | ||
119 | * illegal way. (such as mixing up address types or using | ||
120 | * out-of-range indices). | ||
121 | * | ||
122 | * If it doesn't get removed, the linker will complain | ||
123 | * loudly with a reasonably clear error message.. | ||
124 | */ | ||
125 | if (idx >= __end_of_fixed_addresses) | ||
126 | __this_fixmap_does_not_exist(); | ||
127 | 98 | ||
128 | return __fix_to_virt(idx); | 99 | #include <asm-generic/fixmap.h> |
129 | } | ||
130 | 100 | ||
131 | static inline unsigned long virt_to_fix(const unsigned long vaddr) | ||
132 | { | ||
133 | BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); | ||
134 | return __virt_to_fix(vaddr); | ||
135 | } | ||
136 | #endif | 101 | #endif |
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index 49c09c7d5b77..67a049e75ec1 100644 --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c | |||
@@ -995,29 +995,19 @@ static struct unwinder dwarf_unwinder = { | |||
995 | 995 | ||
996 | static void dwarf_unwinder_cleanup(void) | 996 | static void dwarf_unwinder_cleanup(void) |
997 | { | 997 | { |
998 | struct rb_node **fde_rb_node = &fde_root.rb_node; | 998 | struct dwarf_fde *fde, *next_fde; |
999 | struct rb_node **cie_rb_node = &cie_root.rb_node; | 999 | struct dwarf_cie *cie, *next_cie; |
1000 | 1000 | ||
1001 | /* | 1001 | /* |
1002 | * Deallocate all the memory allocated for the DWARF unwinder. | 1002 | * Deallocate all the memory allocated for the DWARF unwinder. |
1003 | * Traverse all the FDE/CIE lists and remove and free all the | 1003 | * Traverse all the FDE/CIE lists and remove and free all the |
1004 | * memory associated with those data structures. | 1004 | * memory associated with those data structures. |
1005 | */ | 1005 | */ |
1006 | while (*fde_rb_node) { | 1006 | rbtree_postorder_for_each_entry_safe(fde, next_fde, &fde_root, node) |
1007 | struct dwarf_fde *fde; | ||
1008 | |||
1009 | fde = rb_entry(*fde_rb_node, struct dwarf_fde, node); | ||
1010 | rb_erase(*fde_rb_node, &fde_root); | ||
1011 | kfree(fde); | 1007 | kfree(fde); |
1012 | } | ||
1013 | 1008 | ||
1014 | while (*cie_rb_node) { | 1009 | rbtree_postorder_for_each_entry_safe(cie, next_cie, &cie_root, node) |
1015 | struct dwarf_cie *cie; | ||
1016 | |||
1017 | cie = rb_entry(*cie_rb_node, struct dwarf_cie, node); | ||
1018 | rb_erase(*cie_rb_node, &cie_root); | ||
1019 | kfree(cie); | 1010 | kfree(cie); |
1020 | } | ||
1021 | 1011 | ||
1022 | kmem_cache_destroy(dwarf_reg_cachep); | 1012 | kmem_cache_destroy(dwarf_reg_cachep); |
1023 | kmem_cache_destroy(dwarf_frame_cachep); | 1013 | kmem_cache_destroy(dwarf_frame_cachep); |