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:
parent
6070714e0f
commit
4ac3ee88c7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue