Repository navigation
Commit 44ffc75
committed
cgroup, sched: convert away from cftype->read_map()
In preparation of conversion to kernfs, cgroup file handling is being
consolidated so that it can be easily mapped to the seq_file based
interface of kernfs.
cftype->read_map() doesn't add any value and being replaced with
->read_seq_string(). Update cpu_stats_show() and cpuacct_stats_show()
accordingly.
This patch doesn't make any visible behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>1 parent afb2bc1 commit 44ffc75
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7257 | 7257 | | |
7258 | 7258 | | |
7259 | 7259 | | |
7260 | | - | |
| 7260 | + | |
7261 | 7261 | | |
7262 | 7262 | | |
7263 | 7263 | | |
7264 | 7264 | | |
7265 | | - | |
7266 | | - | |
7267 | | - | |
| 7265 | + | |
| 7266 | + | |
| 7267 | + | |
7268 | 7268 | | |
7269 | 7269 | | |
7270 | 7270 | | |
| |||
7318 | 7318 | | |
7319 | 7319 | | |
7320 | 7320 | | |
7321 | | - | |
| 7321 | + | |
7322 | 7322 | | |
7323 | 7323 | | |
7324 | 7324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
0 commit comments