[PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-21 Thread Paul Gortmaker
While this is done for all bitmaps, the original use case in mind was for CPU masks and cpulist_parse() as described below. It seems that a common configuration is to use the 1st couple cores for housekeeping tasks. This tends to leave the remaining ones to form a pool of similarly configured cor

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-21 Thread Paul Gortmaker
[Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] On 11/02/2021 (Thu 17:24) Yury Norov wrote: > On Wed, Feb 10, 2021 at 06:49:30PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 10, 2021 at 10:58:25AM -0500, Paul Gortmaker wrote: > > > [Re: [PAT

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-11 Thread Yury Norov
On Wed, Feb 10, 2021 at 06:49:30PM +0200, Andy Shevchenko wrote: > On Wed, Feb 10, 2021 at 10:58:25AM -0500, Paul Gortmaker wrote: > > [Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] > > On 09/02/2021 (Tue 15:16) Yury Norov wrote: > > &g

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-10 Thread Andy Shevchenko
On Wed, Feb 10, 2021 at 10:58:25AM -0500, Paul Gortmaker wrote: > [Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] On > 09/02/2021 (Tue 15:16) Yury Norov wrote: > > > On Tue, Feb 9, 2021 at 3:01 PM Paul Gortmaker > > wrote: > &

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-10 Thread Paul Gortmaker
[Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] On 09/02/2021 (Tue 15:16) Yury Norov wrote: > On Tue, Feb 9, 2021 at 3:01 PM Paul Gortmaker > wrote: [...] > > > > -static const char *bitmap_getnum(const char *str, unsigned int

[PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-09 Thread Paul Gortmaker
While this is done for all bitmaps, the original use case in mind was for CPU masks and cpulist_parse() as described below. It seems that a common configuration is to use the 1st couple cores for housekeeping tasks. This tends to leave the remaining ones to form a pool of similarly configured cor

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-09 Thread Yury Norov
On Tue, Feb 9, 2021 at 3:01 PM Paul Gortmaker wrote: > > While this is done for all bitmaps, the original use case in mind was > for CPU masks and cpulist_parse() as described below. > > It seems that a common configuration is to use the 1st couple cores for > housekeeping tasks. This tends to le

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-01-27 Thread Yury Norov
On Tue, Jan 26, 2021 at 1:40 PM Andy Shevchenko wrote: > > On Tue, Jan 26, 2021 at 11:37:30PM +0200, Andy Shevchenko wrote: > > On Tue, Jan 26, 2021 at 12:11:39PM -0500, Paul Gortmaker wrote: > > ... > > > > + if (str[0] == 'N') { > > > + *num = nbits - 1; > > > + return str

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-01-27 Thread Paul Gortmaker
[Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] On 26/01/2021 (Tue 23:37) Andy Shevchenko wrote: > On Tue, Jan 26, 2021 at 12:11:39PM -0500, Paul Gortmaker wrote: > > While this is done for all bitmaps, the original use case in mind was &g

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-01-26 Thread Andy Shevchenko
On Tue, Jan 26, 2021 at 11:37:30PM +0200, Andy Shevchenko wrote: > On Tue, Jan 26, 2021 at 12:11:39PM -0500, Paul Gortmaker wrote: ... > > + if (str[0] == 'N') { > > + *num = nbits - 1; > > + return str + 1; > > + } > > But locating it here makes possible to enter a prior

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-01-26 Thread Andy Shevchenko
On Tue, Jan 26, 2021 at 12:11:39PM -0500, Paul Gortmaker wrote: > While this is done for all bitmaps, the original use case in mind was > for CPU masks and cpulist_parse() as described below. > > It seems that a common configuration is to use the 1st couple cores for > housekeeping tasks. This te

[PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-01-26 Thread Paul Gortmaker
While this is done for all bitmaps, the original use case in mind was for CPU masks and cpulist_parse() as described below. It seems that a common configuration is to use the 1st couple cores for housekeeping tasks. This tends to leave the remaining ones to form a pool of similarly configured cor