Repository navigation
Commit f995801
x86/resctrl: Use container_of() in delayed_work handlers
mbm_handle_overflow() and cqm_handle_limbo() are both provided with
the domain's work_struct when called, but use get_domain_from_cpu()
to find the domain, along with the appropriate error handling.
container_of() saves some list walking and bitmap testing, use that
instead.
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/20200708163929.2783-5-james.morse@arm.com1 parent ae0fbed commit f995801
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 480 | + | |
486 | 481 | | |
487 | 482 | | |
488 | 483 | | |
489 | 484 | | |
490 | 485 | | |
491 | 486 | | |
492 | | - | |
493 | 487 | | |
494 | 488 | | |
495 | 489 | | |
| |||
519 | 513 | | |
520 | 514 | | |
521 | 515 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
| 516 | + | |
526 | 517 | | |
527 | 518 | | |
528 | 519 | | |
| |||
0 commit comments