Blame view

include/linux/spinlock_types_up.h 726 Bytes
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
1
2
3
4
5
6
7
8
9
10
11
12
13
  #ifndef __LINUX_SPINLOCK_TYPES_UP_H
  #define __LINUX_SPINLOCK_TYPES_UP_H
  
  #ifndef __LINUX_SPINLOCK_TYPES_H
  # error "please don't include this file directly"
  #endif
  
  /*
   * include/linux/spinlock_types_up.h - spinlock type definitions for UP
   *
   * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
   * Released under the General Public License (GPL).
   */
21f8ca3bf   Peter Zijlstra   fix raw_spinlock_...
14
  #ifdef CONFIG_DEBUG_SPINLOCK
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
15
16
17
  
  typedef struct {
  	volatile unsigned int slock;
445c89514   Thomas Gleixner   locking: Convert ...
18
  } arch_spinlock_t;
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
19

edc35bd72   Thomas Gleixner   locking: Rename _...
20
  #define __ARCH_SPIN_LOCK_UNLOCKED { 1 }
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
21
22
  
  #else
445c89514   Thomas Gleixner   locking: Convert ...
23
  typedef struct { } arch_spinlock_t;
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
24

edc35bd72   Thomas Gleixner   locking: Rename _...
25
  #define __ARCH_SPIN_LOCK_UNLOCKED { }
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
26
27
  
  #endif
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
28
29
  typedef struct {
  	/* no debug version on UP */
fb3a6bbc9   Thomas Gleixner   locking: Convert ...
30
  } arch_rwlock_t;
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
31

fb3a6bbc9   Thomas Gleixner   locking: Convert ...
32
  #define __ARCH_RW_LOCK_UNLOCKED { }
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
33
34
  
  #endif /* __LINUX_SPINLOCK_TYPES_UP_H */