diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-07-01 08:59:06 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-07-01 08:59:06 +0000 |
commit | 7beed3a871060bfa452163c1bd54ea0989e1fa74 (patch) | |
tree | 29d8c7936267d4579ce803208a126ec7c0055c94 /arch/mips/sgi/kernel | |
parent | 5db55a1e1de9e46e561bf100e90c01dd22bd03de (diff) |
Minor optimization, use save_and_cli() instead of save_flags();
cli(); sequences.
Diffstat (limited to 'arch/mips/sgi/kernel')
-rw-r--r-- | arch/mips/sgi/kernel/indy_int.c | 13 | ||||
-rw-r--r-- | arch/mips/sgi/kernel/indy_timer.c | 6 |
2 files changed, 10 insertions, 9 deletions
diff --git a/arch/mips/sgi/kernel/indy_int.c b/arch/mips/sgi/kernel/indy_int.c index fe60c03c8..efc174795 100644 --- a/arch/mips/sgi/kernel/indy_int.c +++ b/arch/mips/sgi/kernel/indy_int.c @@ -1,8 +1,10 @@ -/* $Id: indy_int.c,v 1.12 1996/08/07 02:54:11 dm Exp $ +/* * indy_int.c: Routines for generic manipulation of the INT[23] ASIC * found on INDY workstations.. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) + * + * $Id: indy_int.c,v 1.2 1997/06/28 23:27:29 ralf Exp $ */ #include <linux/config.h> @@ -67,8 +69,7 @@ void disable_local_irq(unsigned int irq_nr) { unsigned long flags; - save_flags(flags); - cli(); + save_and_cli(flags); switch(irq_nr) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: ioc_icontrol->imask0 &= ~(1 << irq_nr); @@ -95,8 +96,7 @@ void disable_local_irq(unsigned int irq_nr) void enable_local_irq(unsigned int irq_nr) { unsigned long flags; - save_flags(flags); - cli(); + save_and_cli(flags); switch(irq_nr) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: ioc_icontrol->imask0 |= (1 << irq_nr); @@ -408,8 +408,7 @@ void free_irq(unsigned int irq, void *dev_id) continue; /* Found it - now free it */ - save_flags(flags); - cli(); + save_and_cli(flags); *p = action->next; restore_flags(flags); kfree(action); diff --git a/arch/mips/sgi/kernel/indy_timer.c b/arch/mips/sgi/kernel/indy_timer.c index b49ec6762..43c1c76c6 100644 --- a/arch/mips/sgi/kernel/indy_timer.c +++ b/arch/mips/sgi/kernel/indy_timer.c @@ -1,7 +1,9 @@ -/* $Id: indy_timer.c,v 1.10 1996/08/07 02:54:11 dm Exp $ +/* * indy_timer.c: Setting up the clock on the INDY 8254 controller. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) + * + * $Id: indy_timer.c,v 1.2 1997/06/28 23:27:29 ralf Exp $ */ #include <linux/errno.h> @@ -280,7 +282,7 @@ void do_gettimeofday(struct timeval *tv) { unsigned long flags; - save_flags(flags); cli(); + save_and_cli(flags); *tv = xtime; restore_flags(flags); } |