Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47440
b: refs/heads/master
c: 5cf885d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina authored and Linus Torvalds committed Feb 11, 2007
1 parent 4304d73 commit fbe96df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8447157a1ac467fae2125074f3693f557c8e05d3
refs/heads/master: 5cf885d01f30be710a339976c485f92bb8a8946d
9 changes: 3 additions & 6 deletions trunk/arch/cris/arch-v10/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ flush_tlb_all(void)
* in the same 4-way entry group. details..
*/

local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);
for(i = 0; i < NUM_TLB_ENTRIES; i++) {
*R_TLB_SELECT = ( IO_FIELD(R_TLB_SELECT, index, i) );
*R_TLB_HI = ( IO_FIELD(R_TLB_HI, page_id, INVALID_PAGEID ) |
Expand Down Expand Up @@ -78,8 +77,7 @@ flush_tlb_mm(struct mm_struct *mm)
* global pages. is it worth the extra I/O ?
*/

local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);
for(i = 0; i < NUM_TLB_ENTRIES; i++) {
*R_TLB_SELECT = IO_FIELD(R_TLB_SELECT, index, i);
if (IO_EXTRACT(R_TLB_HI, page_id, *R_TLB_HI) == page_id) {
Expand Down Expand Up @@ -118,8 +116,7 @@ flush_tlb_page(struct vm_area_struct *vma,
* and the virtual address requested
*/

local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);
for(i = 0; i < NUM_TLB_ENTRIES; i++) {
unsigned long tlb_hi;
*R_TLB_SELECT = IO_FIELD(R_TLB_SELECT, index, i);
Expand Down
9 changes: 3 additions & 6 deletions trunk/arch/cris/arch-v32/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ __flush_tlb_all(void)
* Mask with 0xf so similar TLB entries aren't written in the same 4-way
* entry group.
*/
local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);

for (mmu = 1; mmu <= 2; mmu++) {
SUPP_BANK_SEL(mmu); /* Select the MMU */
Expand Down Expand Up @@ -92,8 +91,7 @@ __flush_tlb_mm(struct mm_struct *mm)
return;

/* Mark the TLB entries that match the page_id as invalid. */
local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);

for (mmu = 1; mmu <= 2; mmu++) {
SUPP_BANK_SEL(mmu);
Expand Down Expand Up @@ -140,8 +138,7 @@ __flush_tlb_page(struct vm_area_struct *vma, unsigned long addr)
* Invalidate those TLB entries that match both the mm context and the
* requested virtual address.
*/
local_save_flags(flags);
local_irq_disable();
local_irq_save(flags);

for (mmu = 1; mmu <= 2; mmu++) {
SUPP_BANK_SEL(mmu);
Expand Down

0 comments on commit fbe96df

Please sign in to comment.