Commit Graph

4 Commits

Author SHA1 Message Date
Preetham Chandru Ramchandra
c2357c8af5 cpuidle: tegra: Fix sparse issue.
symbol 'tegra_auto_cpuidle_s2idle_exit' is not declared so made it
static.

Bug 3954363

Change-Id: I715a3c4c4553a533ed59c9b85f628ce1e9baa308
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2899670
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-08 05:34:09 -07:00
Ishan Shah
947f489dac nvidia-oot: cpuidle: Add idle debugfs nodes
Adding debugfs support to force cpus into idle states. Building as
module instead of driver. Generic to support any standard cpuidle
implementation.

Bug 3583597

Change-Id: I5dd9e8635b844f465bc4c9da7e1d45ee17dd669f
Signed-off-by: Ishan Shah <ishah@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2814926
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-02-04 00:52:39 -08:00
Preetham Chandru Ramchandra
e4113a1995 cpuidle: tegra: cpuidle-tegra-auto compilation fix
Fix the error on compiling cpuidle-tegra-auto as OOT module.
Keeping the change in a separate patch for better tracking the
changes done.

Issues resolved are:
 ERROR: modpost: "s2idle_state"
 Fix: used a local variable s2idle_sc7_state to fix

 ERROR: modpost: "__boot_cpu_id"
 Fix: Used CPU number "0" always. It's a logical number and we
      don't have a dependency on the actual boot CPU.

 ERROR: modpost: "cpuidle_devices"
 Fix: Used a per cpu variable "tegra_auto_cpuidle_drivers" of type
      "struct cpuidle_driver *" to store and fetch the "*drv".

Bug 3583597

Change-Id: Idf1c4f4eecbdd638e31e0b76efa140a8f45616e9
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2843935
(cherry picked from commit a101f1bf1175f18744082f175f91a411903b9f45)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819960
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Preetham Chandru <pchandru@nvidia.com>
2023-01-20 09:18:50 -08:00
Preetham Chandru Ramchandra
287b23bf62 cpuidle: tegra: Build CPU_IDLE_TEGRA_AUTO as OOT
Build CONFIG_CPU_IDLE_TEGRA_AUTO as 'cpuidle-tegra-auto.ko' module.
It is direct copy of 'nvidia/drivers/cpuidle/cpuidle-tegra-auto.c'.

Bug 3583597

Change-Id: I78a41eaadaf5f95857829c4f2e961116e764c79e
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2843934
(cherry picked from commit a29a4cbc2b5ea6180b4750057c8175a0076e5681)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819959
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-01-20 09:18:46 -08:00