X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Falpha%2Foprofile%2Fcommon.c;h=908eb4af8decfe263e0908297256e7bfec5e73b3;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=4ab14ed40cc89639eafc3e9f26575ed793d08106;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/alpha/oprofile/common.c b/arch/alpha/oprofile/common.c index 4ab14ed40..908eb4af8 100644 --- a/arch/alpha/oprofile/common.c +++ b/arch/alpha/oprofile/common.c @@ -138,17 +138,8 @@ op_axp_create_files(struct super_block * sb, struct dentry * root) return 0; } -static struct oprofile_operations oprof_axp_ops = { - .create_files = op_axp_create_files, - .setup = op_axp_setup, - .shutdown = op_axp_shutdown, - .start = op_axp_start, - .stop = op_axp_stop, - .cpu_type = NULL /* To be filled in below. */ -}; - int __init -oprofile_arch_init(struct oprofile_operations **ops) +oprofile_arch_init(struct oprofile_operations *ops) { struct op_axp_model *lmodel = NULL; @@ -178,8 +169,12 @@ oprofile_arch_init(struct oprofile_operations **ops) return -ENODEV; model = lmodel; - oprof_axp_ops.cpu_type = lmodel->cpu_type; - *ops = &oprof_axp_ops; + ops->create_files = op_axp_create_files; + ops->setup = op_axp_setup; + ops->shutdown = op_axp_shutdown; + ops->start = op_axp_start; + ops->stop = op_axp_stop; + ops->cpu_type = lmodel->cpu_type; printk(KERN_INFO "oprofile: using %s performance monitoring.\n", lmodel->cpu_type);