~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-mips64/softirq.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: softirq.h,v 1.3 2000/02/23 00:41:38 ralf Exp $
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (C) 1997, 1998, 1999, 2000 by Ralf Baechle
  8  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
  9  */
 10 #ifndef _ASM_SOFTIRQ_H
 11 #define _ASM_SOFTIRQ_H
 12 
 13 #include <asm/atomic.h>
 14 #include <asm/hardirq.h>
 15 
 16 #define cpu_bh_disable(cpu)     do { local_bh_count(cpu)++; barrier(); } while (0)
 17 #define cpu_bh_enable(cpu)      do { barrier(); local_bh_count(cpu)--; } while (0)
 18 
 19 #define local_bh_disable()      cpu_bh_disable(smp_processor_id())
 20 #define local_bh_enable()       cpu_bh_enable(smp_processor_id())
 21 
 22 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
 23 
 24 #endif /* _ASM_SOFTIRQ_H */
 25 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.