Commit bd4955d
x86/resctrl: Simplify call convention for MSR update functions
The per-resource MSR update functions cat_wrmsr(), mba_wrmsr_intel(),
and mba_wrmsr_amd() all take three arguments:
(struct rdt_domain *d, struct msr_param *m, struct rdt_resource *r)
struct msr_param contains pointers to both struct rdt_resource and struct
rdt_domain, thus only struct msr_param is necessary.
Pass struct msr_param as a single parameter. Clean up formatting and
fix some fir tree declaration ordering.
No functional change.
Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Babu Moger <babu.moger@amd.com>
Tested-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Link: https://lore.kernel.org/r/20240308213846.77075-3-tony.luck@intel.com1 parent e3ca96e commit bd4955d
3 files changed
Lines changed: 18 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
309 | 304 | | |
310 | 305 | | |
311 | 306 | | |
312 | | - | |
313 | | - | |
| 307 | + | |
314 | 308 | | |
| 309 | + | |
| 310 | + | |
315 | 311 | | |
316 | | - | |
317 | | - | |
318 | 312 | | |
319 | 313 | | |
320 | 314 | | |
| |||
334 | 328 | | |
335 | 329 | | |
336 | 330 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 331 | + | |
340 | 332 | | |
| 333 | + | |
| 334 | + | |
341 | 335 | | |
342 | | - | |
343 | | - | |
344 | 336 | | |
345 | 337 | | |
346 | 338 | | |
347 | | - | |
| 339 | + | |
348 | 340 | | |
349 | 341 | | |
350 | | - | |
351 | | - | |
| 342 | + | |
352 | 343 | | |
| 344 | + | |
| 345 | + | |
353 | 346 | | |
354 | | - | |
355 | | - | |
356 | 347 | | |
357 | 348 | | |
358 | 349 | | |
| |||
384 | 375 | | |
385 | 376 | | |
386 | 377 | | |
387 | | - | |
| 378 | + | |
388 | 379 | | |
389 | 380 | | |
390 | 381 | | |
| |||
457 | 448 | | |
458 | 449 | | |
459 | 450 | | |
| 451 | + | |
460 | 452 | | |
461 | 453 | | |
462 | 454 | | |
463 | | - | |
| 455 | + | |
464 | 456 | | |
465 | 457 | | |
466 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
| 448 | + | |
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
| |||
0 commit comments