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
This commit is contained in:
Konstantin Belousov 2021-10-30 10:36:24 +03:00 committed by Sebastian Huber
parent 6070714e0f
commit 4ac3ee88c7
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ static __inline int CPU_COUNT(const cpu_set_t *set)
static __inline int CPU_EQUAL_S(size_t setsize, const cpu_set_t *set1,
const cpu_set_t *set2)
{
return !BIT_CMP(_cpu_set_bits(setsize), set1, set2);
return BIT_CMP(_cpu_set_bits(setsize), set1, set2) == 0;
}
static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)