diff options
Diffstat (limited to 'arch/mips/oprofile/common.c')
-rw-r--r-- | arch/mips/oprofile/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index 3bf3354547f6..7832ad257a14 100644 --- a/arch/mips/oprofile/common.c +++ b/arch/mips/oprofile/common.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak)); | 17 | extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak)); |
18 | extern struct op_mips_model op_model_rm9000_ops __attribute__((weak)); | 18 | extern struct op_mips_model op_model_rm9000_ops __attribute__((weak)); |
19 | extern struct op_mips_model op_model_loongson2_ops __attribute__((weak)); | ||
19 | 20 | ||
20 | static struct op_mips_model *model; | 21 | static struct op_mips_model *model; |
21 | 22 | ||
@@ -93,6 +94,9 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
93 | case CPU_RM9000: | 94 | case CPU_RM9000: |
94 | lmodel = &op_model_rm9000_ops; | 95 | lmodel = &op_model_rm9000_ops; |
95 | break; | 96 | break; |
97 | case CPU_LOONGSON2: | ||
98 | lmodel = &op_model_loongson2_ops; | ||
99 | break; | ||
96 | }; | 100 | }; |
97 | 101 | ||
98 | if (!lmodel) | 102 | if (!lmodel) |