Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions kernel/bpf/bpf_lru_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

static int get_next_cpu(int cpu)
{
cpu = cpumask_next(cpu, cpu_possible_mask);
if (cpu >= nr_cpu_ids)
cpu = cpumask_first(cpu_possible_mask);
return cpu;
return cpumask_next_wrap(cpu, cpu_possible_mask);
}

/* Local list helpers */
Expand Down
Loading