linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Mon, 17 Jan 2005 17:58:05 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/01/17 17:58:00

Modified files:
        arch/mips/oprofile: common.c 

Log message:
        Hooks to support profiling for MIPS32 / MIPS64 processors, for the
        moment only for the 24K.

diff -urN linux/arch/mips/oprofile/common.c linux/arch/mips/oprofile/common.c
--- linux/arch/mips/oprofile/common.c   2005/01/14 00:58:31     1.2
+++ linux/arch/mips/oprofile/common.c   2005/01/17 17:58:00     1.3
@@ -13,6 +13,7 @@
 
 #include "op_impl.h"
 
+extern struct op_mips_model op_model_mipsxx __attribute__((weak));
 extern struct op_mips_model op_model_rm9000 __attribute__((weak));
 
 static struct op_mips_model *model;
@@ -72,6 +73,10 @@
        struct op_mips_model *lmodel = NULL;
 
        switch (current_cpu_data.cputype) {
+       case CPU_24K:
+               lmodel = &op_model_mipsxx;
+               break;
+
        case CPU_RM9000:
                lmodel = &op_model_rm9000;
                break;

<Prev in Thread] Current Thread [Next in Thread>