Messages in this thread | | | Date | Sun, 23 Nov 2014 20:29:08 +0100 (CET) | From | Thomas Gleixner <> | Subject | Re: [PATCH] x86: Intel Cache Allocation Technology support |
| |
On Sun, 23 Nov 2014, Matt Fleming wrote: > Something like this? > > first_bit = find_next_bit(map, nr_bits, -1); > zero_bit = find_next_zero_bit(map, nr_bits, first_bit); > > if (find_next_bit(map, nr_bits, zero_bit) < nr_bits) > return -EINVAL; /* non-contiguous bits */
Looks pretty self explaining, right?
Thanks,
tglx
| |