Skip to content
Commit b530deed authored by Amit Singh Tomar's avatar Amit Singh Tomar Committed by James Morse
Browse files

fs/resctrl: Remove the limit on the number of CLOSID



At the moment, number of resource control group (user can create) is
limited to 32. Remove the limit.

ffs() returns '1' for bit 0, hence the existing code subtracts 1 from
the index to get the CLOSID value. find_first_bit() returns the bit
number which does not need adjusting.

Signed-off-by: default avatarAmit Singh Tomar <amitsinght@marvell.com>
[ morse: fixed the off-by-one in the allocator and the wrong
  not-found value. Removed the limit. ]
Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent 0066c492
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment