aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lufa/Demos/Device/LowLevel/Mouse/Mouse.h
diff options
context:
space:
mode:
authorDDRnJn <dhruv.ranjan@gmail.com>2019-04-02 14:51:28 -0400
committerDrashna Jaelre <drashna@live.com>2019-04-02 11:51:28 -0700
commit61b2f2b16e92cf63efa1534a1046bed5aab222a0 (patch)
treedf1de4237833416045d90ce649ec2f871ed94142 /lib/lufa/Demos/Device/LowLevel/Mouse/Mouse.h
parentb23752c840e4bcd4a6476d6956f2909514d0ecf0 (diff)
downloadfirmware-61b2f2b16e92cf63efa1534a1046bed5aab222a0.tar.gz
firmware-61b2f2b16e92cf63efa1534a1046bed5aab222a0.tar.bz2
firmware-61b2f2b16e92cf63efa1534a1046bed5aab222a0.zip
Added some new songs (#5525)
Added Fantasie Impromptu and Nocturne Op. 9 No. 1 in B flat minor by Chopin Added Isabella's Lullaby from The Promised Neverland Added Renai Circulation and Platinum Disco from Monogatari Added Terra's theme from Final Fantasy 6
Diffstat (limited to 'lib/lufa/Demos/Device/LowLevel/Mouse/Mouse.h')
0 files changed, 0 insertions, 0 deletions
ref='#n135'>135 136 137 138 139 140 141 142
#ifndef __LINUX_SPINLOCK_H
#define __LINUX_SPINLOCK_H

#include <xen/config.h>
#include <asm/system.h>

/*
 * These are the generic versions of the spinlocks and read-write
 * locks..
 */
#define spin_lock_irqsave(lock, flags)		do { local_irq_save(flags);       spin_lock(lock); } while (0)
#define spin_lock_irq(lock)			do { local_irq_disable();         spin_lock(lock); } while (0)
#define spin_lock_bh(lock)			do { local_bh_disable();          spin_lock(lock); } while (0)

#define read_lock_irqsave(lock, flags)		do { local_irq_save(flags);       read_lock(lock); } while (0)
#define read_lock_irq(lock)			do { local_irq_disable();         read_lock(lock); } while (0)
#define read_lock_bh(lock)			do { local_bh_disable();          read_lock(lock); } while (0)

#define write_lock_irqsave(lock, flags)		do { local_irq_save(flags);      write_lock(lock); } while (0)
#define write_lock_irq(lock)			do { local_irq_disable();        write_lock(lock); } while (0)
#define write_lock_bh(lock)			do { local_bh_disable();         write_lock(lock); } while (0)

#define spin_unlock_irqrestore(lock, flags)	do { spin_unlock(lock);  local_irq_restore(flags); } while (0)
#define spin_unlock_irq(lock)			do { spin_unlock(lock);  local_irq_enable();       } while (0)
#define spin_unlock_bh(lock)			do { spin_unlock(lock);  local_bh_enable();        } while (0)

#define read_unlock_irqrestore(lock, flags)	do { read_unlock(lock);  local_irq_restore(flags); } while (0)
#define read_unlock_irq(lock)			do { read_unlock(lock);  local_irq_enable();       } while (0)
#define read_unlock_bh(lock)			do { read_unlock(lock);  local_bh_enable();        } while (0)

#define write_unlock_irqrestore(lock, flags)	do { write_unlock(lock); local_irq_restore(flags); } while (0)
#define write_unlock_irq(lock)			do { write_unlock(lock); local_irq_enable();       } while (0)
#define write_unlock_bh(lock)			do { write_unlock(lock); local_bh_enable();        } while (0)
#define spin_trylock_bh(lock)			({ int __r; local_bh_disable();\
						__r = spin_trylock(lock);      \
						if (!__r) local_bh_enable();   \
						__r; })

#ifdef CONFIG_SMP