The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=43e6f07b06e05cd36c22b204be5be94c2807aec8

commit 43e6f07b06e05cd36c22b204be5be94c2807aec8
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2021-10-30 07:36:24 +0000
Commit:     Konstantin Belousov <k...@freebsd.org>
CommitDate: 2021-11-10 19:18:54 +0000

    sched.h: add CPU_EQUAL() for better compatibility with Linux
    
    Reviewed by:    jhb
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32901
---
 sys/sys/cpuset.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h
index 9ef1a65f4506..602f73fbe5e4 100644
--- a/sys/sys/cpuset.h
+++ b/sys/sys/cpuset.h
@@ -50,6 +50,7 @@
 #define        CPU_ZERO(p)                     BIT_ZERO(CPU_SETSIZE, p)
 #define        CPU_FILL(p)                     BIT_FILL(CPU_SETSIZE, p)
 #define        CPU_SETOF(n, p)                 BIT_SETOF(CPU_SETSIZE, n, p)
+#define        CPU_EQUAL(p, c)                 (BIT_CMP(CPU_SETSIZE, p, c) == 
0)
 #define        CPU_EMPTY(p)                    BIT_EMPTY(CPU_SETSIZE, p)
 #define        CPU_ISFULLSET(p)                BIT_ISFULLSET(CPU_SETSIZE, p)
 #define        CPU_SUBSET(p, c)                BIT_SUBSET(CPU_SETSIZE, p, c)

Reply via email to