diff options
Diffstat (limited to 'arch/mips/oprofile/common.c')
| -rw-r--r-- | arch/mips/oprofile/common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index 935dd851f480..f2b4862aaae5 100644 --- a/arch/mips/oprofile/common.c +++ b/arch/mips/oprofile/common.c | |||
| @@ -27,7 +27,7 @@ static int op_mips_setup(void) | |||
| 27 | model->reg_setup(ctr); | 27 | model->reg_setup(ctr); |
| 28 | 28 | ||
| 29 | /* Configure the registers on all cpus. */ | 29 | /* Configure the registers on all cpus. */ |
| 30 | on_each_cpu(model->cpu_setup, 0, 0, 1); | 30 | on_each_cpu(model->cpu_setup, NULL, 0, 1); |
| 31 | 31 | ||
| 32 | return 0; | 32 | return 0; |
| 33 | } | 33 | } |
| @@ -114,5 +114,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
| 114 | 114 | ||
| 115 | void oprofile_arch_exit(void) | 115 | void oprofile_arch_exit(void) |
| 116 | { | 116 | { |
| 117 | model->exit(); | 117 | if (model) |
| 118 | model->exit(); | ||
| 118 | } | 119 | } |
