Skip to contentSkip to conversation

CIRS: turn local_save_flags() + local_irq_disable()into local_irq_save()

PATCH In review Jiri Kosina 2 participants 4 messages Oct 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIRS: turn local_save_flags() + local_irq_disable()into local_irq_save()

[ This is just FYI. I have already queued this one in trivial tree. ]

This is a followup to my patches that fixed this all over the tree quite some time ago. This one went unnoticed for some reason.

TLB handling for CRIS contains local_irq_disable() after local_save_flags(). Turn this into local_irq_save().

---

 arch/cris/arch-v10/mm/fault.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/cris/arch-v10/mm/fault.c +1 -2
index 087a209..ed60588 100644
@@ -80,8 +80,7 @@ handle_mmu_bus_fault(struct pt_regs *regs)
 	 * do_page_fault may have flushed the TLB so we have to restore
 	 * the MMU registers.
 	 */
-	local_save_flags(flags);
-	local_irq_disable();
+	local_irq_save(flags);
 	pmd = (pmd_t *)(pgd + pgd_index(address));
 	if (pmd_none(*pmd))
 		goto exit;
Signature · 1 line
1.5.6
#1 lore raw
Quoted 7 lines · Jiri Kosina

[ This is just FYI. I have already queued this one in trivial tree. ]

This is a followup to my patches that fixed this all over the tree quite some time ago. This one went unnoticed for some reason.

TLB handling for CRIS contains local_irq_disable() after local_save_flags(). Turn this into local_irq_save().

Thanks, that looks good.

/^JN - Jesper Nilsson

Signature · 1 line
               Jesper Nilsson -- [email protected]
author Acked-by Jesper Nilsson
#2 lore raw
Quoted 7 lines · Jesper Nilsson
Quoted 5 lines

This is a followup to my patches that fixed this all over the tree quite some time ago. This one went unnoticed for some reason.

TLB handling for CRIS contains local_irq_disable() after local_save_flags(). Turn this into local_irq_save().

Thanks, that looks good.

I will then add

to it if you don't mind (the same for the old debug stuff removal).

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs, Novell Inc.
#3 lore raw
Quoted 6 lines · Jiri Kosina
Quoted 5 lines · Jesper Nilsson
Quoted 4 lines

This is a followup to my patches that fixed this all over the tree quite some time ago. This one went unnoticed for some reason.
TLB handling for CRIS contains local_irq_disable() after local_save_flags(). Turn this into local_irq_save().

Quoted 7 lines
Quoted 1 line

Thanks, that looks good.

I will then add

to it if you don't mind (the same for the old debug stuff removal).

Absolutely, and thank you. :-)

Quoted 3 lines

Thanks,

Jiri Kosina

/^JN - Jesper Nilsson

Signature · 1 line
               Jesper Nilsson -- [email protected]