system.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/include/asm-arm/arch-tbox/system.h
  3.  *
  4.  * Copyright (c) 1996-1999 Russell King.
  5.  */
  6. #ifndef __ASM_ARCH_SYSTEM_H
  7. #define __ASM_ARCH_SYSTEM_H
  8. static void arch_idle(void)
  9. {
  10. unsigned long start_idle;
  11. start_idle = jiffies;
  12. do {
  13. if (current->need_resched || hlt_counter)
  14. goto slow_out;
  15. cpu_do_idle(IDLE_WAIT_FAST);
  16. } while (time_before(jiffies, start_idle + HZ/50));
  17. cpu_do_idle(IDLE_CLOCK_SLOW);
  18. while (!current->need_resched && !hlt_counter) {
  19. cpu_do_idle(IDLE_WAIT_SLOW);
  20. }
  21. cpu_do_idle(IDLE_CLOCK_FAST);
  22. slow_out:
  23. }
  24. #define arch_reset(mode) do { } while (0)
  25. #endif