diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-22 23:33:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-22 23:33:38 -0400 |
commit | efdfce2b7ff3205ba0fba10270b92b80bbc6187d (patch) | |
tree | 6275099128c1e228b79dc0923ae936c24ea5a36f /arch/ia64/mm | |
parent | df68770983b7010ab01e68a21ef67fc034715701 (diff) | |
parent | e55645ec5725a33eac9d6133f3bce381af1e993d (diff) |
Merge tag 'please-pull-paravirt' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
Pull ia64 paravirt removal from Tony Luck:
"Nobody cares about paravirtualization on ia64 anymore"
* tag 'please-pull-paravirt' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux:
ia64: remove paravirt code
Diffstat (limited to 'arch/ia64/mm')
-rw-r--r-- | arch/ia64/mm/init.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index a9b65cf7b34a..7f3028965064 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <asm/uaccess.h> | 34 | #include <asm/uaccess.h> |
35 | #include <asm/unistd.h> | 35 | #include <asm/unistd.h> |
36 | #include <asm/mca.h> | 36 | #include <asm/mca.h> |
37 | #include <asm/paravirt.h> | ||
38 | 37 | ||
39 | extern void ia64_tlb_init (void); | 38 | extern void ia64_tlb_init (void); |
40 | 39 | ||
@@ -244,7 +243,6 @@ put_kernel_page (struct page *page, unsigned long address, pgprot_t pgprot) | |||
244 | static void __init | 243 | static void __init |
245 | setup_gate (void) | 244 | setup_gate (void) |
246 | { | 245 | { |
247 | void *gate_section; | ||
248 | struct page *page; | 246 | struct page *page; |
249 | 247 | ||
250 | /* | 248 | /* |
@@ -252,11 +250,10 @@ setup_gate (void) | |||
252 | * headers etc. and once execute-only page to enable | 250 | * headers etc. and once execute-only page to enable |
253 | * privilege-promotion via "epc": | 251 | * privilege-promotion via "epc": |
254 | */ | 252 | */ |
255 | gate_section = paravirt_get_gate_section(); | 253 | page = virt_to_page(ia64_imva(__start_gate_section)); |
256 | page = virt_to_page(ia64_imva(gate_section)); | ||
257 | put_kernel_page(page, GATE_ADDR, PAGE_READONLY); | 254 | put_kernel_page(page, GATE_ADDR, PAGE_READONLY); |
258 | #ifdef HAVE_BUGGY_SEGREL | 255 | #ifdef HAVE_BUGGY_SEGREL |
259 | page = virt_to_page(ia64_imva(gate_section + PAGE_SIZE)); | 256 | page = virt_to_page(ia64_imva(__start_gate_section + PAGE_SIZE)); |
260 | put_kernel_page(page, GATE_ADDR + PAGE_SIZE, PAGE_GATE); | 257 | put_kernel_page(page, GATE_ADDR + PAGE_SIZE, PAGE_GATE); |
261 | #else | 258 | #else |
262 | put_kernel_page(page, GATE_ADDR + PERCPU_PAGE_SIZE, PAGE_GATE); | 259 | put_kernel_page(page, GATE_ADDR + PERCPU_PAGE_SIZE, PAGE_GATE); |
@@ -642,8 +639,8 @@ mem_init (void) | |||
642 | * code can tell them apart. | 639 | * code can tell them apart. |
643 | */ | 640 | */ |
644 | for (i = 0; i < NR_syscalls; ++i) { | 641 | for (i = 0; i < NR_syscalls; ++i) { |
642 | extern unsigned long fsyscall_table[NR_syscalls]; | ||
645 | extern unsigned long sys_call_table[NR_syscalls]; | 643 | extern unsigned long sys_call_table[NR_syscalls]; |
646 | unsigned long *fsyscall_table = paravirt_get_fsyscall_table(); | ||
647 | 644 | ||
648 | if (!fsyscall_table[i] || nolwsys) | 645 | if (!fsyscall_table[i] || nolwsys) |
649 | fsyscall_table[i] = sys_call_table[i] | 1; | 646 | fsyscall_table[i] = sys_call_table[i] | 1; |