Skip to contentSkip to conversation

sb1 oprofile

PATCH In review Mark Mason 2 participants 2 messages Jan 17, 2006 – Jan 19, 2006 MIPS

lore
Share & tools
lore

Mark Mason

author
#0 lore raw

PATCH 1/1 sb1 oprofile

Hello,

The following patch provides oprofile support for the SB1 processors. [Please apply - lol]

/Mark

arch/mips/oprofile/Makefile +1 -0
@@ -12,4 +12,5 @@ oprofile-y				:= $(DRIVER_OBJS) common.o
 
 oprofile-$(CONFIG_CPU_MIPS32)		+= op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_MIPS64)		+= op_model_mipsxx.o
+oprofile-$(CONFIG_CPU_SB1)		+= op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_RM9000)		+= op_model_rm9000.o
arch/mips/oprofile/common.c +2 -0
@@ -79,6 +79,8 @@ int __init oprofile_arch_init(struct opr
 	case CPU_20KC:
 	case CPU_24K:
 	case CPU_25KF:
+	case CPU_SB1:
+	case CPU_SB1A:
 		lmodel = &op_model_mipsxx;
 		break;
 
arch/mips/oprofile/op_model_mipsxx.c +5 -0
@@ -205,6 +205,11 @@ static int __init mipsxx_init(void)
 		op_model_mipsxx.cpu_type = "mips/5K";
 		break;
 
+	case CPU_SB1:
+	case CPU_SB1A:
+		op_model_mipsxx.cpu_type = "mips/sb1";
+		break;
+
 	default:
 		printk(KERN_ERR "Profiling unsupported for this CPU\n");
 
#1 lore raw
Quoted 2 lines · Mark Mason

The following patch provides oprofile support for the SB1 processors. [Please apply - lol]

Ok ;-)

Ralf