Changeset 447


Ignore:
Timestamp:
Jun 8, 2009, 11:05:11 PM (16 years ago)
Author:
Paul Smedley
Message:

Add definition for DEFINE_SPINLOCK - remove OS/2 related hacks around this function

Location:
GPL/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/core/init.c

    r445 r447  
    3636#include <sound/info.h>
    3737
    38 #ifndef TARGET_OS2
    3938static DEFINE_SPINLOCK(shutdown_lock);
    40 #else
    41 spinlock_t shutdown_lock = SPIN_LOCK_UNLOCKED;
    42 #endif
    4339static LIST_HEAD(shutdown_files);
    4440
  • GPL/trunk/alsa-kernel/core/seq/oss/seq_oss_midi.c

    r399 r447  
    5757static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS];
    5858
    59 #ifndef TARGET_OS2
    6059static DEFINE_SPINLOCK(register_lock);
    61 #else
    62 spinlock_t register_lock = SPIN_LOCK_UNLOCKED;
    63 #endif
    64 
    6560
    6661/*
  • GPL/trunk/alsa-kernel/core/seq/oss/seq_oss_synth.c

    r399 r447  
    7676};
    7777
    78 #ifndef TARGET_OS2
    7978static DEFINE_SPINLOCK(register_lock);
    80 #else
    81 spinlock_t register_lock = SPIN_LOCK_UNLOCKED;
    82 #endif
    8379
    8480/*
  • GPL/trunk/alsa-kernel/core/seq/seq_clientmgr.c

    r445 r447  
    6565#define SNDRV_SEQ_LFLG_OPEN     (SNDRV_SEQ_LFLG_INPUT|SNDRV_SEQ_LFLG_OUTPUT)
    6666
    67 #ifndef TARGET_OS2
    6867static DEFINE_SPINLOCK(clients_lock);
    69 #else
    70 static spinlock_t clients_lock = SPIN_LOCK_UNLOCKED;
    71 #endif
    7268static DEFINE_MUTEX(register_mutex);
    7369
  • GPL/trunk/alsa-kernel/core/seq/seq_queue.c

    r399 r447  
    4949/* list of allocated queues */
    5050static struct snd_seq_queue *queue_list[SNDRV_SEQ_MAX_QUEUES];
    51 #ifndef TARGET_OS2
    5251static DEFINE_SPINLOCK(queue_list_lock);
    53 #else
    54 static spinlock_t queue_list_lock = SPIN_LOCK_UNLOCKED;
    55 #endif
     52
    5653/* number of queues allocated */
    5754static int num_queues;
  • GPL/trunk/alsa-kernel/core/timer.c

    r445 r447  
    8080
    8181/* lock for slave active lists */
    82 #ifndef TARGET_OS2
    8382static DEFINE_SPINLOCK(slave_active_lock);
    84 #else
    85 static spinlock_t slave_active_lock = SPIN_LOCK_UNLOCKED;
    86 #endif
    8783
    8884static DEFINE_MUTEX(register_mutex);
  • GPL/trunk/include/linux/spinlock.h

    r441 r447  
    8080#define rwlock_init(x) *(x) = RW_LOCK_UNLOCKED;
    8181
     82#define DEFINE_SPINLOCK(x)      spinlock_t x = SPIN_LOCK_UNLOCKED
    8283#endif /* !SMP */
    8384#endif /* __LINUX_SPINLOCK_H */
Note: See TracChangeset for help on using the changeset viewer.