ia64/xen-unstable

changeset 13832:a39a2f18429c

linux: compilation fix of linux/drivers/oprofile/oprof.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Fri Feb 02 15:52:30 2007 +0000 (2007-02-02)
parents 82171212156b
children 249e7e32dec8
files patches/linux-2.6.18/xenoprof-generic.patch
line diff
     1.1 --- a/patches/linux-2.6.18/xenoprof-generic.patch	Fri Feb 02 15:50:27 2007 +0000
     1.2 +++ b/patches/linux-2.6.18/xenoprof-generic.patch	Fri Feb 02 15:52:30 2007 +0000
     1.3 @@ -363,9 +363,9 @@ diff -pruN ../orig-linux-2.6.18/drivers/
     1.4  +	if (!oprofile_ops.set_active)
     1.5  +		return -EINVAL;
     1.6  +
     1.7 -+	down(&start_sem);
     1.8 ++	mutex_lock(&start_mutex);
     1.9  +	err = oprofile_ops.set_active(active_domains, adomains);
    1.10 -+	up(&start_sem);
    1.11 ++	mutex_unlock(&start_mutex);
    1.12  +	return err;
    1.13  +}
    1.14  +
    1.15 @@ -376,9 +376,9 @@ diff -pruN ../orig-linux-2.6.18/drivers/
    1.16  +	if (!oprofile_ops.set_passive)
    1.17  +		return -EINVAL;
    1.18  +
    1.19 -+	down(&start_sem);
    1.20 ++	mutex_lock(&start_mutex);
    1.21  +	err = oprofile_ops.set_passive(passive_domains, pdomains);
    1.22 -+	up(&start_sem);
    1.23 ++	mutex_unlock(&start_mutex);
    1.24  +	return err;
    1.25  +}
    1.26  +