diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-22 12:07:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-22 12:07:00 -0500 |
commit | e45521a8d44da2c4efd17fc8e853f7917e99b57a (patch) | |
tree | 71c95c906588e182b82a1ef45ca8dad3fc1a29f6 /arch | |
parent | 79d26287021d3158e3cb8da820f1b8233564dd3b (diff) | |
parent | 2806ccd7ad9073f4f1a065b5672d7592e7838e97 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Delete duplicate call to load_irq_save.
[MIPS] SMTC: Fix cp0 hazard.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/smtc.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/tlb-r4k.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 802febed7df5..a8b387197d5b 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
@@ -261,6 +261,7 @@ void smtc_configure_tlb(void) | |||
261 | } | 261 | } |
262 | } | 262 | } |
263 | write_c0_mvpcontrol(read_c0_mvpcontrol() | MVPCONTROL_STLB); | 263 | write_c0_mvpcontrol(read_c0_mvpcontrol() | MVPCONTROL_STLB); |
264 | ehb(); | ||
264 | 265 | ||
265 | /* | 266 | /* |
266 | * Setup kernel data structures to use software total, | 267 | * Setup kernel data structures to use software total, |
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index 2e0e21ef433e..65160d4984d9 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c | |||
@@ -106,7 +106,6 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, | |||
106 | ENTER_CRITICAL(flags); | 106 | ENTER_CRITICAL(flags); |
107 | size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT; | 107 | size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT; |
108 | size = (size + 1) >> 1; | 108 | size = (size + 1) >> 1; |
109 | local_irq_save(flags); | ||
110 | if (size <= current_cpu_data.tlbsize/2) { | 109 | if (size <= current_cpu_data.tlbsize/2) { |
111 | int oldpid = read_c0_entryhi(); | 110 | int oldpid = read_c0_entryhi(); |
112 | int newpid = cpu_asid(cpu, mm); | 111 | int newpid = cpu_asid(cpu, mm); |