git: sys/cpu/x86_64: Expose CPUMASK macros to userspace without _KERNEL_STRUCTURES

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Jul 16 05:14:40 PDT 2016


commit 6e279e27dfa05662c35f719a51b9c78656f9eaed
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Jul 16 08:57:06 2016 +0900

    sys/cpu/x86_64: Expose CPUMASK macros to userspace without _KERNEL_STRUCTURES
    
    Userspace programs other than /sbin/usched may use cpu affinity,
    as the syscall was added for userspace programs to control it,
    so it should not require _KERNEL_STRUCTURES.
    
    Also note that cpumask_t which is a structure used by CPUMASK
    macros doesn't require _KERNEL_STRUCTURES.
    
    Confirmed the change doesn't break buildworld and buildkernel/LINT64.
    
    (I actually had compile-time issues with fio while trying to add
    cpu affinity support, and ended up copy-pasting CPUMASK macros
    to a DragonFly specific header in fio source without defining
    _KERNEL_STRUCTURES)

Summary of changes:
 sbin/usched/usched.c           | 1 -
 sys/cpu/x86_64/include/types.h | 4 ----
 2 files changed, 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e279e27dfa05662c35f719a51b9c78656f9eaed


-- 
DragonFly BSD source repository



More information about the Commits mailing list