process.c (458ce2910aa83d8a2cafb489d727f7da839e73c6) | process.c (bd2f55361f18347e890d52ff9cfd8895455ec11b) |
---|---|
1/* 2 * PARISC Architecture-dependent parts of process handling 3 * based on the work for i386 4 * 5 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org> 6 * Copyright (C) 2000 Martin K Petersen <mkp at mkp.net> 7 * Copyright (C) 2000 John Marvin <jsm at parisc-linux.org> 8 * Copyright (C) 2000 David Huggins-Daines <dhd with pobox.org> --- 57 unchanged lines hidden (view full) --- 66void cpu_idle(void) 67{ 68 set_thread_flag(TIF_POLLING_NRFLAG); 69 70 /* endless idle loop with no priority at all */ 71 while (1) { 72 while (!need_resched()) 73 barrier(); | 1/* 2 * PARISC Architecture-dependent parts of process handling 3 * based on the work for i386 4 * 5 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org> 6 * Copyright (C) 2000 Martin K Petersen <mkp at mkp.net> 7 * Copyright (C) 2000 John Marvin <jsm at parisc-linux.org> 8 * Copyright (C) 2000 David Huggins-Daines <dhd with pobox.org> --- 57 unchanged lines hidden (view full) --- 66void cpu_idle(void) 67{ 68 set_thread_flag(TIF_POLLING_NRFLAG); 69 70 /* endless idle loop with no priority at all */ 71 while (1) { 72 while (!need_resched()) 73 barrier(); |
74 preempt_enable_no_resched(); 75 schedule(); 76 preempt_disable(); | 74 schedule_preempt_disabled(); |
77 check_pgt_cache(); 78 } 79} 80 81 82#define COMMAND_GLOBAL F_EXTEND(0xfffe0030) 83#define CMD_RESET 5 /* reset any module */ 84 --- 321 unchanged lines hidden --- | 75 check_pgt_cache(); 76 } 77} 78 79 80#define COMMAND_GLOBAL F_EXTEND(0xfffe0030) 81#define CMD_RESET 5 /* reset any module */ 82 --- 321 unchanged lines hidden --- |