Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17771
b: refs/heads/master
c: 2065988
h: refs/heads/master
i:
  17769: 026f8b7
  17767: e399905
v: v3
  • Loading branch information
Ralf Baechle authored and unknown committed Jan 10, 2006
1 parent d8d3e35 commit cef3aab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9efeae9a5cae7e7bdacff666a1d689f5b2901c64
refs/heads/master: 2065988e9fb1628de7958b0f7f709b93302f7b97
3 changes: 3 additions & 0 deletions trunk/arch/mips/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
int res;

switch (current_cpu_data.cputype) {
case CPU_5KC:
case CPU_20KC:
case CPU_24K:
case CPU_25KF:
lmodel = &op_model_mipsxx;
break;

Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/mips/oprofile/op_model_mipsxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,22 @@ static int __init mipsxx_init(void)

op_model_mipsxx.num_counters = counters;
switch (current_cpu_data.cputype) {
case CPU_20KC:
op_model_mipsxx.cpu_type = "mips/20K";
break;

case CPU_24K:
op_model_mipsxx.cpu_type = "mips/24K";
break;

case CPU_25KF:
op_model_mipsxx.cpu_type = "mips/25K";
break;

case CPU_5KC:
op_model_mipsxx.cpu_type = "mips/5K";
break;

default:
printk(KERN_ERR "Profiling unsupported for this CPU\n");

Expand Down

0 comments on commit cef3aab

Please sign in to comment.