aboutsummaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-02 15:52:30 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-02 15:52:30 +0000
commit0ee998f095671221b77d69d75e301b777d24b4fd (patch)
tree865699006eeea6a78e35c7a5dbc3ccd6646949ba /patches
parent34814f4465cdb53af4dfbe08c0083d646721c17a (diff)
downloadxen-0ee998f095671221b77d69d75e301b777d24b4fd.tar.gz
xen-0ee998f095671221b77d69d75e301b777d24b4fd.tar.bz2
xen-0ee998f095671221b77d69d75e301b777d24b4fd.zip
linux: compilation fix of linux/drivers/oprofile/oprof.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'patches')
-rw-r--r--patches/linux-2.6.18/xenoprof-generic.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/linux-2.6.18/xenoprof-generic.patch b/patches/linux-2.6.18/xenoprof-generic.patch
index 0e05586df1..d2542b2d13 100644
--- a/patches/linux-2.6.18/xenoprof-generic.patch
+++ b/patches/linux-2.6.18/xenoprof-generic.patch
@@ -363,9 +363,9 @@ diff -pruN ../orig-linux-2.6.18/drivers/oprofile/oprof.c ./drivers/oprofile/opro
+ if (!oprofile_ops.set_active)
+ return -EINVAL;
+
-+ down(&start_sem);
++ mutex_lock(&start_mutex);
+ err = oprofile_ops.set_active(active_domains, adomains);
-+ up(&start_sem);
++ mutex_unlock(&start_mutex);
+ return err;
+}
+
@@ -376,9 +376,9 @@ diff -pruN ../orig-linux-2.6.18/drivers/oprofile/oprof.c ./drivers/oprofile/opro
+ if (!oprofile_ops.set_passive)
+ return -EINVAL;
+
-+ down(&start_sem);
++ mutex_lock(&start_mutex);
+ err = oprofile_ops.set_passive(passive_domains, pdomains);
-+ up(&start_sem);
++ mutex_unlock(&start_mutex);
+ return err;
+}
+