mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
video: tegra: nvmap: Remove use of add_mm_counter
add_mm_counter is not an exported function, so instead use atomic_long_add_return/percpu_counter_add to directly modify RSS stat counters. Bug 5222690 Change-Id: I51a68d932aeb04f96e51a4a3c286ee5c8efc789a Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3446982 (cherry picked from commit8e1a6b2dd1) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3453099 (cherry picked from commite488812038) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3454643 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com> Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
This commit is contained in:
committed by
Amulya Yarlagadda
parent
3b830eb8a7
commit
033c964778
@@ -7152,6 +7152,23 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_MII_BUS_STRUCT_HAS_WRITE_C45" "" "types"
|
||||
;;
|
||||
|
||||
mm_struct_struct_has_percpu_counter_rss_stat)
|
||||
#
|
||||
# Determine if the 'rss_stat' member of the 'mm_struct' structure is
|
||||
# defined with 'percpu_counter'.
|
||||
#
|
||||
# This change was made in Linux v6.2 by commit f1a7941243c1 ("mm:
|
||||
# convert mm's rss stats into percpu_counter2").
|
||||
#
|
||||
CODE="
|
||||
#include <linux/mm_types.h>
|
||||
void conftest_mm_struct_struct_has_percpu_counter_rss_stat(struct mm_struct *mm) {
|
||||
percpu_counter_add(&mm->rss_stat[0], 0);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_MM_STRUCT_STRUCT_HAS_PERCPU_COUNTER_RSS_STAT" "" "types"
|
||||
;;
|
||||
|
||||
pwm_chip_struct_has_base_arg)
|
||||
#
|
||||
# Determine if 'struct pwm_chip' has the 'base' field.
|
||||
|
||||
Reference in New Issue
Block a user