Commit 7c101b7b authored by Jiri Kosina's avatar Jiri Kosina Committed by Linus Torvalds

[PATCH] CRIS: local_irq_disable() is redundant after local_irq_save()

arch/cris/arch-v10/kernel/time.c::get_ns_in_jiffie() contains
local_irq_disable() call after local_irq_save().  This looks redundant.

arch/cris/kernel/time.c::do_gettimeofday() contains local_irq_disable() call
after local_irq_save().  This looks redundant.
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 36dbf958
...@@ -38,7 +38,6 @@ unsigned long get_ns_in_jiffie(void) ...@@ -38,7 +38,6 @@ unsigned long get_ns_in_jiffie(void)
unsigned long flags; unsigned long flags;
local_irq_save(flags); local_irq_save(flags);
local_irq_disable();
timer_count = *R_TIMER0_DATA; timer_count = *R_TIMER0_DATA;
presc_count = *R_TIM_PRESC_STATUS; presc_count = *R_TIM_PRESC_STATUS;
/* presc_count might be wrapped */ /* presc_count might be wrapped */
......
...@@ -55,7 +55,6 @@ void do_gettimeofday(struct timeval *tv) ...@@ -55,7 +55,6 @@ void do_gettimeofday(struct timeval *tv)
unsigned long flags; unsigned long flags;
signed long usec, sec; signed long usec, sec;
local_irq_save(flags); local_irq_save(flags);
local_irq_disable();
usec = do_gettimeoffset(); usec = do_gettimeoffset();
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment