diff options
| author | Dave Martin <dave.martin@arm.com> | 2026-09-11 17:36:11 +0100 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-09-14 08:15:11 -0700 |
| commit | 57a354d20a01287bd173b13231eb5afcda337eee (patch) | |
| tree | 6f80b48bb7ed588b9bb9984cb6fff5a6e9fb4161 /tools/perf/scripts/python/bin | |
| parent | df2908090cda368b01ff43709f51890076c56157 (diff) | |
x86,fs/resctrl: Add resctrl_arch_preconvert_bw()
On MPAM systems the rounding behaviour of the MBA control would be improved if
the rounding in the fs/resctrl code is removed but this is not the case for
x86. To allow any rounding or conversion of the bandwidth value provided by
the user to be specified by the arch code a new arch hook is required.
Introduce resctrl_arch_preconvert_bw(), and add its x86 implementation.
This is currently unused in resctrl but when plumbed in it will replace the
call to roundup() in bw_validate().
Signed-off-by: Dave Martin <dave.martin@arm.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://patch.msgid.link/20260911163613.1131447-2-ben.horgan@arm.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
