cpu-probe.c (559300bc0ef7ccd541656f1189d38e7088389559) | cpu-probe.c (f8ede0f700f5478851f242f291d203cde54ca6cf) |
---|---|
1/* 2 * Processor capabilities determination functions. 3 * 4 * Copyright (C) xxxx the Anonymous 5 * Copyright (C) 1994 - 2006 Ralf Baechle 6 * Copyright (C) 2003, 2004 Maciej W. Rozycki 7 * Copyright (C) 2001, 2004 MIPS Inc. 8 * 9 * This program is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License 11 * as published by the Free Software Foundation; either version 12 * 2 of the License, or (at your option) any later version. 13 */ 14#include <linux/init.h> 15#include <linux/kernel.h> 16#include <linux/ptrace.h> 17#include <linux/smp.h> 18#include <linux/stddef.h> | 1/* 2 * Processor capabilities determination functions. 3 * 4 * Copyright (C) xxxx the Anonymous 5 * Copyright (C) 1994 - 2006 Ralf Baechle 6 * Copyright (C) 2003, 2004 Maciej W. Rozycki 7 * Copyright (C) 2001, 2004 MIPS Inc. 8 * 9 * This program is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License 11 * as published by the Free Software Foundation; either version 12 * 2 of the License, or (at your option) any later version. 13 */ 14#include <linux/init.h> 15#include <linux/kernel.h> 16#include <linux/ptrace.h> 17#include <linux/smp.h> 18#include <linux/stddef.h> |
19#include <linux/module.h> |
|
19 20#include <asm/bugs.h> 21#include <asm/cpu.h> 22#include <asm/fpu.h> 23#include <asm/mipsregs.h> 24#include <asm/system.h> 25#include <asm/watch.h> 26#include <asm/spram.h> 27/* 28 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover, 29 * the implementation of the "wait" feature differs between CPU families. This 30 * points to the function that implements CPU specific wait. 31 * The wait instruction stops the pipeline and reduces the power consumption of 32 * the CPU very much. 33 */ 34void (*cpu_wait)(void); | 20 21#include <asm/bugs.h> 22#include <asm/cpu.h> 23#include <asm/fpu.h> 24#include <asm/mipsregs.h> 25#include <asm/system.h> 26#include <asm/watch.h> 27#include <asm/spram.h> 28/* 29 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover, 30 * the implementation of the "wait" feature differs between CPU families. This 31 * points to the function that implements CPU specific wait. 32 * The wait instruction stops the pipeline and reduces the power consumption of 33 * the CPU very much. 34 */ 35void (*cpu_wait)(void); |
36EXPORT_SYMBOL(cpu_wait); |
|
35 36static void r3081_wait(void) 37{ 38 unsigned long cfg = read_c0_conf(); 39 write_c0_conf(cfg | R30XX_CONF_HALT); 40} 41 42static void r39xx_wait(void) --- 938 unchanged lines hidden --- | 37 38static void r3081_wait(void) 39{ 40 unsigned long cfg = read_c0_conf(); 41 write_c0_conf(cfg | R30XX_CONF_HALT); 42} 43 44static void r39xx_wait(void) --- 938 unchanged lines hidden --- |