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

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 26 17:29:06 PDT 2016


commit 752fca5874f4ec7f25c7052224dda9b58db5b3ac
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/752fca5874f4ec7f25c7052224dda9b58db5b3ac


-- 
DragonFly BSD source repository



More information about the Commits mailing list