forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit0a4954a
percpu_counter: add percpu_counter_sync()
percpu_counter's accuracy is related to its batch size. For apercpu_counter with a big batch, its deviation could be big, so when thecounter's batch is runtime changed to a smaller value for better accuracy,there could also be requirment to reduce the big deviation.So add a percpu-counter sync function to be run on each CPU.Reported-by: kernel test robot <rong.a.chen@intel.com>Signed-off-by: Feng Tang <feng.tang@intel.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Cc: Dennis Zhou <dennis@kernel.org>Cc: Tejun Heo <tj@kernel.org>Cc: Christoph Lameter <cl@linux.com>Cc: Michal Hocko <mhocko@suse.com>Cc: Qian Cai <cai@lca.pw>Cc: Andi Kleen <andi.kleen@intel.com>Cc: Huang Ying <ying.huang@intel.com>Cc: Dave Hansen <dave.hansen@intel.com>Cc: Haiyang Zhang <haiyangz@microsoft.com>Cc: Johannes Weiner <hannes@cmpxchg.org>Cc: Kees Cook <keescook@chromium.org>Cc: "K. Y. Srinivasan" <kys@microsoft.com>Cc: Matthew Wilcox (Oracle) <willy@infradead.org>Cc: Mel Gorman <mgorman@suse.de>Cc: Tim Chen <tim.c.chen@intel.com>Link:http://lkml.kernel.org/r/1594389708-60781-4-git-send-email-feng.tang@intel.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent4e2ee51 commit0a4954a
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
| |||
0 commit comments
Comments
(0)