]> Zhao Yanbai Git Server - minix.git/commit
SMP - trully idle APs
authorTomas Hruby <tom@minix3.org>
Wed, 15 Sep 2010 14:10:57 +0000 (14:10 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 15 Sep 2010 14:10:57 +0000 (14:10 +0000)
commit0ac9b6d4cf7eef7f24692862580bbdce9b37024f
tree7aa3e7714eb8957b4057f59cb28c54ebb1c6847f
parent387e1835d1e7c5ea45035c01a74834fcdffad4e7
SMP - trully idle APs

- any cpu can use smp_schedule() to tell another cpu to reschedule

- if an AP is idle, it turns off timer as there is nothing to
  preempt, no need to wakeup just to go back to sleep again

- if a cpu makes a process runnable on an idle cpu, it must wake it up
  to reschedule
12 files changed:
kernel/arch/i386/apic.c
kernel/arch/i386/apic.h
kernel/arch/i386/apic_asm.S
kernel/arch/i386/arch_clock.c
kernel/arch/i386/arch_smp.c
kernel/arch/i386/include/hw_intr.h
kernel/clock.h
kernel/cpulocals.h
kernel/interrupt.h [new file with mode: 0644]
kernel/proc.c
kernel/smp.c
kernel/smp.h