Skip to content

Commit

Permalink
[PATCH] CRIS: local_irq_disable() is redundant after local_irq_save()
Browse files Browse the repository at this point in the history
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: Jiri Kosina <jkosina@suse.cz>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Kosina authored and Linus Torvalds committed Feb 11, 2007
1 parent 36dbf95 commit 7c101b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/cris/arch-v10/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ unsigned long get_ns_in_jiffie(void)
unsigned long flags;

local_irq_save(flags);
local_irq_disable();
timer_count = *R_TIMER0_DATA;
presc_count = *R_TIM_PRESC_STATUS;
/* presc_count might be wrapped */
Expand Down
1 change: 0 additions & 1 deletion arch/cris/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void do_gettimeofday(struct timeval *tv)
unsigned long flags;
signed long usec, sec;
local_irq_save(flags);
local_irq_disable();
usec = do_gettimeoffset();

/*
Expand Down

0 comments on commit 7c101b7

Please sign in to comment.