Message ID | 20210222220750.12911-3-jkacur@redhat.com |
---|---|
State | New |
Headers | show |
Series | Fix for machines without numa | expand |
diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h index 4cbd979c21e8..03f060e144ce 100644 --- a/src/cyclictest/rt_numa.h +++ b/src/cyclictest/rt_numa.h @@ -83,16 +83,4 @@ static inline void rt_bitmask_free(struct bitmask *mask) numa_bitmask_free(mask); } -/** Returns number of bits set in mask. */ -static inline unsigned int rt_numa_bitmask_count(const struct bitmask *mask) -{ - unsigned int num_bits = 0, i; - for (i = 0; i < mask->size; i++) { - if (rt_numa_bitmask_isbitset(mask, i)) - num_bits++; - } - /* Could stash this instead of recomputing every time. */ - return num_bits; -} - #endif /* _RT_NUMA_H */
Remove rt_numa_bitmask_count as it is unused. The code uses numa_bitmask_weight() from numa instead Signed-off-by: John Kacur <jkacur@redhat.com> --- src/cyclictest/rt_numa.h | 12 ------------ 1 file changed, 12 deletions(-)