⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.h

📁 ARM S3C2410 linux2.4 内核源码
💻 H
字号:
/* *  linux/include/asm-arm/arch-rpc/system.h * *  Copyright (C) 1996-1999 Russell King. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include <asm/arch/hardware.h>#include <asm/hardware/iomd.h>#include <asm/io.h>static void arch_idle(void){	unsigned long start_idle;	start_idle = jiffies;	do {		if (current->need_resched || hlt_counter)			goto slow_out;		cpu_do_idle(IDLE_WAIT_FAST);	} while (time_before(jiffies, start_idle + HZ/50));	cpu_do_idle(IDLE_CLOCK_SLOW);	while (!current->need_resched && !hlt_counter) {		cpu_do_idle(IDLE_WAIT_SLOW);	}	cpu_do_idle(IDLE_CLOCK_FAST);slow_out:}static inline void arch_reset(char mode){	iomd_writeb(0, IOMD_ROMCR0);	/*	 * Jump into the ROM	 */	cpu_reset(0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -