diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 16 | ||||
-rw-r--r-- | arch/sh/include/asm/delay.h | 27 | ||||
-rw-r--r-- | arch/sh/kernel/module.c | 35 |
3 files changed, 1 insertions, 77 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index bbdeb48bbf8e..748ff1920068 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -897,20 +897,4 @@ source "security/Kconfig" | |||
897 | 897 | ||
898 | source "crypto/Kconfig" | 898 | source "crypto/Kconfig" |
899 | 899 | ||
900 | menuconfig VIRTUALIZATION | ||
901 | bool "Virtualization" | ||
902 | default n | ||
903 | ---help--- | ||
904 | Say Y here to get to see options for using your Linux host to run other | ||
905 | operating systems inside virtual machines (guests). | ||
906 | This option alone does not add any kernel code. | ||
907 | |||
908 | If you say N, all options in this submenu will be skipped and disabled. | ||
909 | |||
910 | if VIRTUALIZATION | ||
911 | |||
912 | source drivers/virtio/Kconfig | ||
913 | |||
914 | endif # VIRTUALIZATION | ||
915 | |||
916 | source "lib/Kconfig" | 900 | source "lib/Kconfig" |
diff --git a/arch/sh/include/asm/delay.h b/arch/sh/include/asm/delay.h index 4b16bf9b56bd..9670e127b7b2 100644 --- a/arch/sh/include/asm/delay.h +++ b/arch/sh/include/asm/delay.h | |||
@@ -1,26 +1 @@ | |||
1 | #ifndef __ASM_SH_DELAY_H | #include <asm-generic/delay.h> | |
2 | #define __ASM_SH_DELAY_H | ||
3 | |||
4 | /* | ||
5 | * Copyright (C) 1993 Linus Torvalds | ||
6 | * | ||
7 | * Delay routines calling functions in arch/sh/lib/delay.c | ||
8 | */ | ||
9 | |||
10 | extern void __bad_udelay(void); | ||
11 | extern void __bad_ndelay(void); | ||
12 | |||
13 | extern void __udelay(unsigned long usecs); | ||
14 | extern void __ndelay(unsigned long nsecs); | ||
15 | extern void __const_udelay(unsigned long xloops); | ||
16 | extern void __delay(unsigned long loops); | ||
17 | |||
18 | #define udelay(n) (__builtin_constant_p(n) ? \ | ||
19 | ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \ | ||
20 | __udelay(n)) | ||
21 | |||
22 | #define ndelay(n) (__builtin_constant_p(n) ? \ | ||
23 | ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \ | ||
24 | __ndelay(n)) | ||
25 | |||
26 | #endif /* __ASM_SH_DELAY_H */ | ||
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 19b1f8826aef..1b525dedd29a 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c | |||
@@ -34,30 +34,6 @@ | |||
34 | #include <asm/unaligned.h> | 34 | #include <asm/unaligned.h> |
35 | #include <asm/dwarf.h> | 35 | #include <asm/dwarf.h> |
36 | 36 | ||
37 | void *module_alloc(unsigned long size) | ||
38 | { | ||
39 | if (size == 0) | ||
40 | return NULL; | ||
41 | |||
42 | return vmalloc_exec(size); | ||
43 | } | ||
44 | |||
45 | |||
46 | /* Free memory returned from module_alloc */ | ||
47 | void module_free(struct module *mod, void *module_region) | ||
48 | { | ||
49 | vfree(module_region); | ||
50 | } | ||
51 | |||
52 | /* We don't need anything special. */ | ||
53 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
54 | Elf_Shdr *sechdrs, | ||
55 | char *secstrings, | ||
56 | struct module *mod) | ||
57 | { | ||
58 | return 0; | ||
59 | } | ||
60 | |||
61 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 37 | int apply_relocate_add(Elf32_Shdr *sechdrs, |
62 | const char *strtab, | 38 | const char *strtab, |
63 | unsigned int symindex, | 39 | unsigned int symindex, |
@@ -133,17 +109,6 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
133 | return 0; | 109 | return 0; |
134 | } | 110 | } |
135 | 111 | ||
136 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
137 | const char *strtab, | ||
138 | unsigned int symindex, | ||
139 | unsigned int relsec, | ||
140 | struct module *me) | ||
141 | { | ||
142 | printk(KERN_ERR "module %s: REL RELOCATION unsupported\n", | ||
143 | me->name); | ||
144 | return -ENOEXEC; | ||
145 | } | ||
146 | |||
147 | int module_finalize(const Elf_Ehdr *hdr, | 112 | int module_finalize(const Elf_Ehdr *hdr, |
148 | const Elf_Shdr *sechdrs, | 113 | const Elf_Shdr *sechdrs, |
149 | struct module *me) | 114 | struct module *me) |