mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	[SPARC]: Remove legacy stuff from cpu_idle().
Currently sparc and sparc64's UP cpu_idle() checks current pid. This is old time legacy. Now it's paranoia. Signed-off-by: Coywolf Qi Hunt <coywolf@lovecn.org> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									8edf72ebce
								
							
						
					
					
						commit
						7cc1712b8a
					
				
					 2 changed files with 0 additions and 9 deletions
				
			
		|  | @ -83,9 +83,6 @@ void default_idle(void) | |||
|  */ | ||||
| void cpu_idle(void) | ||||
| { | ||||
| 	if (current->pid != 0) | ||||
| 		goto out; | ||||
| 
 | ||||
| 	/* endless idle loop with no priority at all */ | ||||
| 	for (;;) { | ||||
| 		if (ARCH_SUN4C_SUN4) { | ||||
|  | @ -126,8 +123,6 @@ void cpu_idle(void) | |||
| 		schedule(); | ||||
| 		check_pgt_cache(); | ||||
| 	} | ||||
| out: | ||||
| 	return; | ||||
| } | ||||
| 
 | ||||
| #else | ||||
|  |  | |||
|  | @ -62,9 +62,6 @@ void default_idle(void) | |||
|  */ | ||||
| void cpu_idle(void) | ||||
| { | ||||
| 	if (current->pid != 0) | ||||
| 		return; | ||||
| 
 | ||||
| 	/* endless idle loop with no priority at all */ | ||||
| 	for (;;) { | ||||
| 		/* If current->work.need_resched is zero we should really
 | ||||
|  | @ -80,7 +77,6 @@ void cpu_idle(void) | |||
| 		schedule(); | ||||
| 		check_pgt_cache(); | ||||
| 	} | ||||
| 	return; | ||||
| } | ||||
| 
 | ||||
| #else | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Coywolf Qi Hunt
						Coywolf Qi Hunt