From: kfraser@localhost.localdomain Date: Fri, 2 Feb 2007 15:52:30 +0000 (+0000) Subject: linux: compilation fix of linux/drivers/oprofile/oprof.c X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15358^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ee998f095671221b77d69d75e301b777d24b4fd;p=xen.git linux: compilation fix of linux/drivers/oprofile/oprof.c Signed-off-by: Isaku Yamahata --- 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; +} +