process.c (2bbb6817c0ac1b5f2a68d720f364f98eeb1ac4fd) | process.c (1268fbc746ea1cd279886a740dcbad4ba5232225) |
---|---|
1/* 2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 3 * Copyright 2003 PathScale, Inc. 4 * Licensed under the GPL 5 */ 6 7#include <linux/stddef.h> 8#include <linux/err.h> --- 232 unchanged lines hidden (view full) --- 241 242 /* 243 * although we are an idle CPU, we do not want to 244 * get into the scheduler unnecessarily. 245 */ 246 if (need_resched()) 247 schedule(); 248 | 1/* 2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 3 * Copyright 2003 PathScale, Inc. 4 * Licensed under the GPL 5 */ 6 7#include <linux/stddef.h> 8#include <linux/err.h> --- 232 unchanged lines hidden (view full) --- 241 242 /* 243 * although we are an idle CPU, we do not want to 244 * get into the scheduler unnecessarily. 245 */ 246 if (need_resched()) 247 schedule(); 248 |
249 tick_nohz_idle_enter_norcu(); | 249 tick_nohz_idle_enter(); 250 rcu_idle_enter(); |
250 nsecs = disable_timer(); 251 idle_sleep(nsecs); | 251 nsecs = disable_timer(); 252 idle_sleep(nsecs); |
252 tick_nohz_idle_exit_norcu(); | 253 rcu_idle_exit(); 254 tick_nohz_idle_exit(); |
253 } 254} 255 256void cpu_idle(void) 257{ 258 cpu_tasks[current_thread_info()->cpu].pid = os_getpid(); 259 default_idle(); 260} --- 206 unchanged lines hidden --- | 255 } 256} 257 258void cpu_idle(void) 259{ 260 cpu_tasks[current_thread_info()->cpu].pid = os_getpid(); 261 default_idle(); 262} --- 206 unchanged lines hidden --- |