git: vkernel/intr: Pin vkernel "hardware interrupts" to CPU0

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Dec 30 19:37:51 PST 2011


commit bae88a6fb83b50ace893acf72fafe4eee2f220dd
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sat Dec 31 11:29:32 2011 +0800

    vkernel/intr: Pin vkernel "hardware interrupts" to CPU0
    
    Due to the nondeterminsm of CPU to which SIGIO will be delivered,
    we can't depend on "hardware interrupts" of vkernel always happen
    on the registered CPU.  We now pin the vkernel "hardware interrupts"
    to CPU0, so the interrupt scheduling code could always know the
    correct ithread to be scheduled.
    
    Reported-by: tuxillo vsrinivas

Summary of changes:
 sys/kern/kern_intr.c                       |   24 ++++++++++++++++++++++++
 sys/platform/vkernel/platform/console.c    |    3 ++-
 sys/platform/vkernel/platform/cothread.c   |    6 +++---
 sys/platform/vkernel/platform/kqueue.c     |    8 ++++----
 sys/platform/vkernel/platform/machintr.c   |    8 ++++----
 sys/platform/vkernel/platform/shutdown.c   |    3 ++-
 sys/platform/vkernel64/platform/console.c  |    3 ++-
 sys/platform/vkernel64/platform/cothread.c |    6 +++---
 sys/platform/vkernel64/platform/kqueue.c   |    8 ++++----
 sys/platform/vkernel64/platform/machintr.c |    8 ++++----
 sys/platform/vkernel64/platform/shutdown.c |    3 ++-
 sys/sys/interrupt.h                        |    7 +++++++
 12 files changed, 61 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bae88a6fb83b50ace893acf72fafe4eee2f220dd


-- 
DragonFly BSD source repository





More information about the Commits mailing list