git: sys: Extract CPUMASK macros to new <machine/cpumask.h>

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Jul 24 10:47:58 PDT 2016


commit b976e2c27a272fede34b02d1900430d3d5ccd624
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Jul 19 10:07:45 2016 +0300

    sys: Extract CPUMASK macros to new <machine/cpumask.h>
    
    There are plenty enough CPUMASK macros already for them to have their own header.
    So far only userspace users are powerd(8), usched(8) and kern_usched.c(VKERNEL64).
    After recent change to expose kernel internal CPUMASK macros those got available
    for userland codes even through <time.h> header. It is better to avoid that.
    Also this reduces POSIX namespace pollution and keeps cpu/types.h header slim.
    
    For now leave CPUMASK_ELEMENTS (not sure about ASSYM() macro handling the _ prefix)
    and cpumask_t typedef (forward decl of struct cpumask would be better in prototypes).

Summary of changes:
 sbin/usched/usched.c                          |   1 +
 sys/cpu/x86_64/include/{types.h => cpumask.h} | 111 ++++-----------
 sys/cpu/x86_64/include/param.h                |   2 +-
 sys/cpu/x86_64/include/types.h                | 197 --------------------------
 sys/kern/kern_usched.c                        |   2 +-
 sys/platform/pc64/apic/lapic.h                |   4 +
 sys/sys/cpu_topology.h                        |   2 +
 sys/sys/thread2.h                             |   1 +
 usr.sbin/powerd/powerd.c                      |   1 +
 9 files changed, 41 insertions(+), 280 deletions(-)
 copy sys/cpu/x86_64/include/{types.h => cpumask.h} (68%)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list