mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 13:05:03 +08:00
994c393bb6
The purpose of the loop using u64_stats_fetch_*_irq() is to ensure
statistics on a given CPU are collected atomically. If one of the
statistics values gets updated within the begin/retry window, the
loop will run again.
Currently the statistics totals are updated inside that window.
This means that if the loop ever retries, the statistics for the
CPU will be counted more than once.
Fix this by taking a snapshot of a CPU's statistics inside the
protected window, and then updating the counters with the snapshot
values after exiting the loop.
(Also add a newline at the end of this file...)
Fixes:
|
||
---|---|---|
.. | ||
emac | ||
rmnet | ||
Kconfig | ||
Makefile | ||
qca_7k_common.c | ||
qca_7k_common.h | ||
qca_7k.c | ||
qca_7k.h | ||
qca_debug.c | ||
qca_debug.h | ||
qca_spi.c | ||
qca_spi.h | ||
qca_uart.c |