+30
−51
Loading
mainline inclusion from mainline-v6.7-rc1 commit d0376aac59a166cd7bd9d1a9768e31e71002631b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90U82 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d0376aac59a166cd7bd9d1a9768e31e71002631b -------------------------------- Previously, in hmat_register_target_initiators(), the performance attributes are calculated and the corresponding sysfs links and files are created too. Which is called during memory onlining. But now, to calculate the abstract distance of a memory target before memory onlining, we need to calculate the performance attributes for a memory target without creating sysfs links and files. To do that, hmat_register_target_initiators() is refactored to make it possible to calculate performance attributes separately. Link: https://lkml.kernel.org/r/20230926060628.265989-3-ying.huang@intel.com Signed-off-by:"Huang, Ying" <ying.huang@intel.com> Reviewed-by:
Alistair Popple <apopple@nvidia.com> Tested-by:
Alistair Popple <apopple@nvidia.com> Tested-by:
Bharata B Rao <bharata@amd.com> Reviewed-by:
Dave Jiang <dave.jiang@intel.com> Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Cc: Wei Xu <weixugc@google.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Yang Shi <shy828301@gmail.com> Cc: Rafael J Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Tong Tiangen <tongtiangen@huawei.com>