git: 6685c78631ad - stable/13 - sched.h: add CPU_EQUAL() for better compatibility with Linux

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 14 Jan 2022 18:10:21 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=6685c78631ad1b08af2c04a139af4829daa1d07f

commit 6685c78631ad1b08af2c04a139af4829daa1d07f
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-30 07:36:24 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-14 16:17:29 +0000

    sched.h: add CPU_EQUAL() for better compatibility with Linux
    
    (cherry picked from commit 43e6f07b06e05cd36c22b204be5be94c2807aec8)
---
 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)