Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2002 → Rev 2003

/drivers/include/linux/irqreturn.h
0,0 → 1,19
#ifndef _LINUX_IRQRETURN_H
#define _LINUX_IRQRETURN_H
 
/**
* enum irqreturn
* @IRQ_NONE interrupt was not from this device
* @IRQ_HANDLED interrupt was handled by this device
* @IRQ_WAKE_THREAD handler requests to wake the handler thread
*/
enum irqreturn {
IRQ_NONE = (0 << 0),
IRQ_HANDLED = (1 << 0),
IRQ_WAKE_THREAD = (1 << 1),
};
 
typedef enum irqreturn irqreturn_t;
#define IRQ_RETVAL(x) ((x) != IRQ_NONE)
 
#endif
/drivers/include/linux/spinlock_api_up.h
34,7 → 34,14
do { local_irq_disable(); __LOCK(lock); } while (0)
 
#define __LOCK_IRQSAVE(lock, flags) \
do { local_irq_save(flags); __LOCK(lock); } while (0)
do { \
__asm__ __volatile__ ( \
"pushf\n\t" \
"popl %0\n\t" \
"cli\n" \
: "=r" (flags)); \
__LOCK(lock); \
} while (0) \
 
#define __UNLOCK(lock) \
do { preempt_enable(); __release(lock); (void)(lock); } while (0)
47,7 → 54,11
do { local_irq_enable(); __UNLOCK(lock); } while (0)
 
#define __UNLOCK_IRQRESTORE(lock, flags) \
do { local_irq_restore(flags); __UNLOCK(lock); } while (0)
do { \
if (flags & (1<<9)) \
__asm__ __volatile__ ("sti"); \
__UNLOCK(lock); \
} while (0)
 
#define _spin_lock(lock) __LOCK(lock)
#define _spin_lock_nested(lock, subclass) __LOCK(lock)