diff options
Diffstat (limited to 'arch/sh')
| -rw-r--r-- | arch/sh/Kconfig | 1 | ||||
| -rw-r--r-- | arch/sh/kernel/process_32.c | 2 | ||||
| -rw-r--r-- | arch/sh/kernel/stacktrace.c | 1 | ||||
| -rw-r--r-- | arch/sh/kernel/sys_sh32.c | 2 | ||||
| -rw-r--r-- | arch/sh/mm/hugetlbpage.c | 8 | ||||
| -rw-r--r-- | arch/sh/mm/init.c | 2 | ||||
| -rw-r--r-- | arch/sh/mm/numa.c | 5 |
7 files changed, 14 insertions, 7 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 3e7384f4619..8879938f335 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
| @@ -8,6 +8,7 @@ mainmenu "Linux/SuperH Kernel Configuration" | |||
| 8 | config SUPERH | 8 | config SUPERH |
| 9 | def_bool y | 9 | def_bool y |
| 10 | select EMBEDDED | 10 | select EMBEDDED |
| 11 | select HAVE_CLK | ||
| 11 | select HAVE_IDE | 12 | select HAVE_IDE |
| 12 | select HAVE_OPROFILE | 13 | select HAVE_OPROFILE |
| 13 | help | 14 | help |
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index b98e37a1f54..921892c351d 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
| @@ -86,7 +86,7 @@ void cpu_idle(void) | |||
| 86 | if (!idle) | 86 | if (!idle) |
| 87 | idle = default_idle; | 87 | idle = default_idle; |
| 88 | 88 | ||
| 89 | tick_nohz_stop_sched_tick(); | 89 | tick_nohz_stop_sched_tick(1); |
| 90 | while (!need_resched()) | 90 | while (!need_resched()) |
| 91 | idle(); | 91 | idle(); |
| 92 | tick_nohz_restart_sched_tick(); | 92 | tick_nohz_restart_sched_tick(); |
diff --git a/arch/sh/kernel/stacktrace.c b/arch/sh/kernel/stacktrace.c index 1b2ae35c4a7..54d1f61aa00 100644 --- a/arch/sh/kernel/stacktrace.c +++ b/arch/sh/kernel/stacktrace.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
| 13 | #include <linux/stacktrace.h> | 13 | #include <linux/stacktrace.h> |
| 14 | #include <linux/thread_info.h> | 14 | #include <linux/thread_info.h> |
| 15 | #include <linux/module.h> | ||
| 15 | #include <asm/ptrace.h> | 16 | #include <asm/ptrace.h> |
| 16 | 17 | ||
| 17 | /* | 18 | /* |
diff --git a/arch/sh/kernel/sys_sh32.c b/arch/sh/kernel/sys_sh32.c index 125e493ead8..f0aa5c39865 100644 --- a/arch/sh/kernel/sys_sh32.c +++ b/arch/sh/kernel/sys_sh32.c | |||
| @@ -29,7 +29,7 @@ asmlinkage int sys_pipe(unsigned long r4, unsigned long r5, | |||
| 29 | int fd[2]; | 29 | int fd[2]; |
| 30 | int error; | 30 | int error; |
| 31 | 31 | ||
| 32 | error = do_pipe(fd); | 32 | error = do_pipe_flags(fd, 0); |
| 33 | if (!error) { | 33 | if (!error) { |
| 34 | regs->regs[1] = fd[1]; | 34 | regs->regs[1] = fd[1]; |
| 35 | return fd[0]; | 35 | return fd[0]; |
diff --git a/arch/sh/mm/hugetlbpage.c b/arch/sh/mm/hugetlbpage.c index ae8c321d6e2..9304117039c 100644 --- a/arch/sh/mm/hugetlbpage.c +++ b/arch/sh/mm/hugetlbpage.c | |||
| @@ -22,7 +22,8 @@ | |||
| 22 | #include <asm/tlbflush.h> | 22 | #include <asm/tlbflush.h> |
| 23 | #include <asm/cacheflush.h> | 23 | #include <asm/cacheflush.h> |
| 24 | 24 | ||
| 25 | pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr) | 25 | pte_t *huge_pte_alloc(struct mm_struct *mm, |
| 26 | unsigned long addr, unsigned long sz) | ||
| 26 | { | 27 | { |
| 27 | pgd_t *pgd; | 28 | pgd_t *pgd; |
| 28 | pud_t *pud; | 29 | pud_t *pud; |
| @@ -78,6 +79,11 @@ int pmd_huge(pmd_t pmd) | |||
| 78 | return 0; | 79 | return 0; |
| 79 | } | 80 | } |
| 80 | 81 | ||
| 82 | int pud_huge(pud_t pud) | ||
| 83 | { | ||
| 84 | return 0; | ||
| 85 | } | ||
| 86 | |||
| 81 | struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, | 87 | struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, |
| 82 | pmd_t *pmd, int write) | 88 | pmd_t *pmd, int write) |
| 83 | { | 89 | { |
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index d7df26bd1e5..d652d375eb1 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
| @@ -191,7 +191,7 @@ void __init paging_init(void) | |||
| 191 | pg_data_t *pgdat = NODE_DATA(nid); | 191 | pg_data_t *pgdat = NODE_DATA(nid); |
| 192 | unsigned long low, start_pfn; | 192 | unsigned long low, start_pfn; |
| 193 | 193 | ||
| 194 | start_pfn = pgdat->bdata->node_boot_start >> PAGE_SHIFT; | 194 | start_pfn = pgdat->bdata->node_min_pfn; |
| 195 | low = pgdat->bdata->node_low_pfn; | 195 | low = pgdat->bdata->node_low_pfn; |
| 196 | 196 | ||
| 197 | if (max_zone_pfns[ZONE_NORMAL] < low) | 197 | if (max_zone_pfns[ZONE_NORMAL] < low) |
diff --git a/arch/sh/mm/numa.c b/arch/sh/mm/numa.c index 1663199ce88..095d93bec7c 100644 --- a/arch/sh/mm/numa.c +++ b/arch/sh/mm/numa.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | #include <linux/pfn.h> | 14 | #include <linux/pfn.h> |
| 15 | #include <asm/sections.h> | 15 | #include <asm/sections.h> |
| 16 | 16 | ||
| 17 | static bootmem_data_t plat_node_bdata[MAX_NUMNODES]; | ||
| 18 | struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; | 17 | struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; |
| 19 | EXPORT_SYMBOL_GPL(node_data); | 18 | EXPORT_SYMBOL_GPL(node_data); |
| 20 | 19 | ||
| @@ -35,7 +34,7 @@ void __init setup_memory(void) | |||
| 35 | NODE_DATA(0) = pfn_to_kaddr(free_pfn); | 34 | NODE_DATA(0) = pfn_to_kaddr(free_pfn); |
| 36 | memset(NODE_DATA(0), 0, sizeof(struct pglist_data)); | 35 | memset(NODE_DATA(0), 0, sizeof(struct pglist_data)); |
| 37 | free_pfn += PFN_UP(sizeof(struct pglist_data)); | 36 | free_pfn += PFN_UP(sizeof(struct pglist_data)); |
| 38 | NODE_DATA(0)->bdata = &plat_node_bdata[0]; | 37 | NODE_DATA(0)->bdata = &bootmem_node_data[0]; |
| 39 | 38 | ||
| 40 | /* Set up node 0 */ | 39 | /* Set up node 0 */ |
| 41 | setup_bootmem_allocator(free_pfn); | 40 | setup_bootmem_allocator(free_pfn); |
| @@ -66,7 +65,7 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) | |||
| 66 | free_pfn += PFN_UP(sizeof(struct pglist_data)); | 65 | free_pfn += PFN_UP(sizeof(struct pglist_data)); |
| 67 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); | 66 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); |
| 68 | 67 | ||
| 69 | NODE_DATA(nid)->bdata = &plat_node_bdata[nid]; | 68 | NODE_DATA(nid)->bdata = &bootmem_node_data[nid]; |
| 70 | NODE_DATA(nid)->node_start_pfn = start_pfn; | 69 | NODE_DATA(nid)->node_start_pfn = start_pfn; |
| 71 | NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; | 70 | NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; |
| 72 | 71 | ||
