summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/softirq.h
blob: a88b20576124e09706e29744c00ec722ff7fd212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __ASM_SOFTIRQ_H
#define __ASM_SOFTIRQ_H

#include <asm/atomic.h>
#include <asm/hardirq.h>

#define local_bh_disable()      (local_bh_count(smp_processor_id())++)
#define local_bh_enable()       (local_bh_count(smp_processor_id())--)

#define in_softirq() (local_bh_count(smp_processor_id()) != 0)

#endif	/* __ASM_SOFTIRQ_H */