2002-08-29 21:56:24

by Peter Waechtler

[permalink] [raw]
Subject: [PATCH] 38/41 sound/oss/pas2_card.c - convert cli to spinlocks

--- vanilla-2.5.32/sound/oss/pas2_card.c Sat Apr 20 18:25:21 2002
+++ linux-2.5-cli-oss/sound/oss/pas2_card.c Tue Aug 13 23:18:58 2002
@@ -7,6 +7,7 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/spinlock.h>
#include "sound_config.h"

#include "pas2.h"
@@ -38,6 +39,7 @@
static int pas_intr_mask = 0;
static int pas_irq = 0;
static int pas_sb_base = 0;
+spinlock_t lock=SPIN_LOCK_UNLOCKED;
#ifndef CONFIG_PAS_JOYSTICK
static int joystick = 0;
#else