X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Foprofile%2Foprofile_files.c;fp=drivers%2Foprofile%2Foprofile_files.c;h=3bb1e6ff7a90e510850088a984a6ab3b915f9af3;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=388846526245c9c50e63b3e03da2eb0e195d9207;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c index 388846526..3bb1e6ff7 100644 --- a/drivers/oprofile/oprofile_files.c +++ b/drivers/oprofile/oprofile_files.c @@ -124,9 +124,10 @@ static struct file_operations dump_fops = { .write = dump_write, }; +#ifdef CONFIG_XEN + #define TMPBUFSIZE 512 -#ifdef CONFIG_XEN static unsigned int adomains = 0; static int active_domains[MAX_OPROF_DOMAINS + 1]; static DEFINE_MUTEX(adom_mutex); @@ -313,6 +314,7 @@ static struct file_operations passive_domain_ops = { .read = pdomain_read, .write = pdomain_write, }; + #endif /* CONFIG_XEN */ void oprofile_create_files(struct super_block * sb, struct dentry * root)