aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/oprofile/common.c
diff options
context:
space:
mode:
authorMadhusudan Bhat <mbhat@netlogicmicro.com>2012-10-31 08:01:27 -0400
committerJohn Crispin <blogic@openwrt.org>2012-11-09 05:37:18 -0500
commitc783390a0ecef08df5c804f8c5f647431a04f502 (patch)
tree31108a6fe38ac9f7ba0e101ee1f2c5f51068f955 /arch/mips/oprofile/common.c
parente7e333cb22e5e34e7a0792f262df52026815662e (diff)
MIPS: oprofile: Support for XLR/XLS processors
Add support for XLR and XLS processors in MIPS Oprofile code. These processors are multi-threaded and have two counters per core. Each counter can track either all the events in the core (global mode), or events in just one thread. We use the counters in the global mode, and use only the first thread in each core to handle the configuration etc. Signed-off-by: Madhusudan Bhat <mbhat@netlogicmicro.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Patchwork: http://patchwork.linux-mips.org/patch/4471 Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/oprofile/common.c')
-rw-r--r--arch/mips/oprofile/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c
index f80480a5a032..abd5a02f47cf 100644
--- a/arch/mips/oprofile/common.c
+++ b/arch/mips/oprofile/common.c
@@ -91,6 +91,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
91 case CPU_R10000: 91 case CPU_R10000:
92 case CPU_R12000: 92 case CPU_R12000:
93 case CPU_R14000: 93 case CPU_R14000:
94 case CPU_XLR:
94 lmodel = &op_model_mipsxx_ops; 95 lmodel = &op_model_mipsxx_ops;
95 break; 96 break;
96 97