patch-2.3.16 linux/arch/arm/kernel/process.c
Next file: linux/arch/arm/kernel/ptrace.c
Previous file: linux/arch/arm/kernel/leds-footbridge.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Mon Aug 30 18:15:15 1999
- Orig file:
v2.3.15/linux/arch/arm/kernel/process.c
- Orig date:
Mon Aug 2 10:19:52 1999
diff -u --recursive --new-file v2.3.15/linux/arch/arm/kernel/process.c linux/arch/arm/kernel/process.c
@@ -9,7 +9,6 @@
* This file handles the architecture-dependent parts of process handling..
*/
-#define __KERNEL_SYSCALLS__
#include <stdarg.h>
#include <linux/errno.h>
@@ -54,16 +53,15 @@
/*
* The idle loop on an ARM...
*/
-asmlinkage int sys_idle(void)
+void cpu_idle(void)
{
- if (current->pid != 0)
- return -EPERM;
-
/* endless idle loop with no priority at all */
+ init_idle();
+ current->priority = 0;
+ current->counter = -100;
while (1) {
if (!current->need_resched && !hlt_counter)
proc_idle();
- current->policy = SCHED_YIELD;
schedule();
#ifndef CONFIG_NO_PGT_CACHE
check_pgt_cache();
@@ -73,7 +71,7 @@
static char reboot_mode = 'h';
-__initfunc(void reboot_setup(char *str, int *ints))
+void __init reboot_setup(char *str, int *ints)
{
reboot_mode = str[0];
}
@@ -283,7 +281,6 @@
*/
pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
{
- extern int sys_exit(int) __attribute__((noreturn));
pid_t __ret;
__asm__ __volatile__(
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)