Skip to content

Commit

Permalink
microblaze: Optimize clear_vms_ums macro
Browse files Browse the repository at this point in the history
We can save two instruction when MSR_VMS and MSR_UMS
are setup in one instruction.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Aug 4, 2010
1 parent 36f6095 commit 3fbd93e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/microblaze/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@
.endm

.macro clear_vms_ums
msrclr r11, MSR_VMS
nop
msrclr r11, MSR_UMS
msrclr r11, MSR_VMS | MSR_UMS
nop
.endm
#else
Expand Down

0 comments on commit 3fbd93e

Please sign in to comment.