Advertisement
Guest User

Untitled

a guest
Nov 15th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ----->
  2. CPU that offilines CPU offlining
  3. ----------------- ---------------------
  4. cpu_down() {
  5. __stop_machine(take_cpu_down)
  6.  
  7. take_cpu_down() {
  8. __cpu_disable() {
  9. * disable irqs in hw
  10. * clear from online mask
  11. }
  12. move all tasks somewhere
  13. }
  14. while (!idle_cpu(offlining))
  15. cpu_relax()
  16.  
  17. cpu_die();
  18. <---------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement