Skip to content

Commit 97c4090

Browse files
KAGA-KOKOborkmann
authored andcommitted
bpf: Remove the obsolte u64_stats_fetch_*_irq() users.
Now that the 32bit UP oddity is gone and 32bit uses always a sequence count, there is no need for the fetch_irq() variants anymore. Convert to the regular interface. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/bpf/20221026123110.331690-1-bigeasy@linutronix.de
1 parent e39e739 commit 97c4090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/bpf/syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,11 +2118,11 @@ static void bpf_prog_get_stats(const struct bpf_prog *prog,
21182118

21192119
st = per_cpu_ptr(prog->stats, cpu);
21202120
do {
2121-
start = u64_stats_fetch_begin_irq(&st->syncp);
2121+
start = u64_stats_fetch_begin(&st->syncp);
21222122
tnsecs = u64_stats_read(&st->nsecs);
21232123
tcnt = u64_stats_read(&st->cnt);
21242124
tmisses = u64_stats_read(&st->misses);
2125-
} while (u64_stats_fetch_retry_irq(&st->syncp, start));
2125+
} while (u64_stats_fetch_retry(&st->syncp, start));
21262126
nsecs += tnsecs;
21272127
cnt += tcnt;
21282128
misses += tmisses;

0 commit comments

Comments
 (0)