# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1170229899 -32400 # Node ID 6caaad7184bd53b1c78e71ed37dd6363589596a1 # Parent 5e8da0663ff863c9de8948b72399e591f34828a2 compilation fix of linux/drivers/oprofile/oprof.c PATCHNAME: compilation_fix_xenoprof Signed-off-by: Isaku Yamahata diff -r 5e8da0663ff8 -r 6caaad7184bd patches/linux-2.6.18/xenoprof-generic.patch --- a/patches/linux-2.6.18/xenoprof-generic.patch Tue Jan 30 01:23:58 2007 +0000 +++ b/patches/linux-2.6.18/xenoprof-generic.patch Wed Jan 31 16:51:39 2007 +0900 @@ -363,9 +363,9 @@ diff -pruN ../orig-linux-2.6.18/drivers/ + 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/ + 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; +} +