diff options
| author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:40:35 +0300 |
|---|---|---|
| committer | Roman Yeryomin <roman@advem.lv> | 2012-12-03 00:13:21 +0200 |
| commit | 5deb3317cb51ac52de922bb55f8492624018906d (patch) | |
| tree | c2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c | |
| parent | 0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff) | |
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c')
| -rw-r--r-- | target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c b/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c new file mode 100644 index 000000000..99539380c --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c @@ -0,0 +1,40 @@ +/* + * Processor capabilities determination functions. + * + * Copyright (C) xxxx the Anonymous + * Copyright (C) 1994 - 2006 Ralf Baechle + * Copyright (C) 2003, 2004 Maciej W. Rozycki + * Copyright (C) 2001, 2004 MIPS Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ +#include <linux/init.h> +#include <linux/kernel.h> +#include <linux/ptrace.h> +#include <linux/stddef.h> + +#include <asm/cpu.h> +#include <asm/rlxregs.h> +#include <asm/system.h> + +const char *__cpu_name[NR_CPUS]; + +void __cpuinit cpu_probe(void) +{ + struct cpuinfo_mips *c = ¤t_cpu_data; + + c->processor_id = PRID_IMP_UNKNOWN; + c->options = MIPS_CPU_TLB | MIPS_CPU_3K_CACHE | MIPS_CPU_NOFPUEX; + c->tlbsize = cpu_tlb_entry; /* defined in bspcpu.h */ + c->processor_id = read_c0_prid(); +} + +void __cpuinit cpu_report(void) +{ + struct cpuinfo_mips *c = ¤t_cpu_data; + + printk("CPU revision is: %08x\n", c->processor_id); +} |
