+125
−1
Loading
Bandwidth counters need to run continuously to correctly reflect the bandwidth. Save the counter state when the hardware is reset due to CPU hotplug. Add struct mbwu_state to track the bandwidth counter. Support for tracking overflow with the same structure will be added in a subsequent commit. Cc: Zeng Heng <zengheng4@huawei.com> Reviewed-by:Gavin Shan <gshan@redhat.com> Reviewed-by:
Zeng Heng <zengheng4@huawei.com> Reviewed-by:
Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by:
Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Reviewed-by:
Fenghua Yu <fenghuay@nvidia.com> Tested-by:
Carl Worth <carl@os.amperecomputing.com> Tested-by:
Gavin Shan <gshan@redhat.com> Tested-by:
Zeng Heng <zengheng4@huawei.com> Tested-by:
Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Tested-by:
Hanjun Guo <guohanjun@huawei.com> Signed-off-by:
James Morse <james.morse@arm.com> Signed-off-by:
Ben Horgan <ben.horgan@arm.com> Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com>