Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1194704
| From | Vikas Shivappa <vikas.shivappa@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/9] x86/intel_rdt: Add support for cache bit mask management |
| Date | 2015-07-29 00:10 +0200 |
| Message-ID | <pRleq-5sl-3@gated-at.bofh.it> (permalink) |
| References | <pHyFX-2Jd-3@gated-at.bofh.it> <pHyFZ-2Jd-31@gated-at.bofh.it> <pRg55-6ml-39@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 28 Jul 2015, Peter Zijlstra wrote:
> On Wed, Jul 01, 2015 at 03:21:07PM -0700, Vikas Shivappa wrote:
>> +static inline bool cbm_is_contiguous(unsigned long var)
>> +{
>> + unsigned long maxcbm = MAX_CBM_LENGTH;
>> + unsigned long first_bit, zero_bit;
>> +
>> + if (!var)
>> + return false;
>> +
>> + first_bit = find_next_bit(&var, maxcbm, 0);
>
> We actually have: find_first_bit().
will fix
Thanks,
Vikas
>
>> + zero_bit = find_next_zero_bit(&var, maxcbm, first_bit);
>> +
>> + if (find_next_bit(&var, maxcbm, zero_bit) < maxcbm)
>> + return false;
>> +
>> + return true;
>> +}
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 6/9] x86/intel_rdt: Add support for cache bit mask management Vikas Shivappa <vikas.shivappa@intel.com> - 2015-07-29 00:10 +0200
csiph-web