From c783390a0ecef08df5c804f8c5f647431a04f502 Mon Sep 17 00:00:00 2001 From: Madhusudan Bhat Date: Wed, 31 Oct 2012 12:01:27 +0000 Subject: 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 Signed-off-by: Jayachandran C Patchwork: http://patchwork.linux-mips.org/patch/4471 Signed-off-by: John Crispin --- arch/mips/oprofile/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/mips/oprofile/common.c') diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index f80480a5a03..abd5a02f47c 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) case CPU_R10000: case CPU_R12000: case CPU_R14000: + case CPU_XLR: lmodel = &op_model_mipsxx_ops; break; -- cgit v1.2.3-70-g09d2