mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate
find_first{,_zero}_bit is a more effective analogue of 'next' version if
start == 0. This patch replaces 'next' with 'first' where things look
trivial.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
@@ -246,8 +246,7 @@ void acrn_ioreq_request_clear(struct acrn_vm *vm)
|
||||
spin_lock_bh(&vm->ioreq_clients_lock);
|
||||
client = vm->default_client;
|
||||
if (client) {
|
||||
vcpu = find_next_bit(client->ioreqs_map,
|
||||
ACRN_IO_REQUEST_MAX, 0);
|
||||
vcpu = find_first_bit(client->ioreqs_map, ACRN_IO_REQUEST_MAX);
|
||||
while (vcpu < ACRN_IO_REQUEST_MAX) {
|
||||
acrn_ioreq_complete_request(client, vcpu, NULL);
|
||||
vcpu = find_next_bit(client->ioreqs_map,
|
||||
|
||||
Reference in New Issue
Block a user