diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-11-30 09:50:38 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-12-01 02:53:31 -0500 |
commit | 5e9f4bbf8ddff9fbe060839a60dcc2168ca3d57c (patch) | |
tree | c798474d5a6676b54526ad1168722bd29ce0a0a4 /drivers/gpu/nvgpu/common/linux | |
parent | d73ad6c07da23636c00c60effeeb53ea35847ee8 (diff) |
gpu: nvgpu: remove linux dependent from pmu_gk20a.c
- Removed Linux dependent header
- Moved thermal alarm post from pmu_gk20a.c
to clk_arb.c
- Implemented nvgpu_clk_arb_send_thermal_alaram()
method to post
NVGPU_GPU_EVENT_ALARM_THERMAL_ABOVE_THRESHOLD
JIRA NVGPU-403
Change-Id: Ibf85c2f3a6e704fdcc0502745fab820f7ea428f4
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1608313
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/clk_arb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/clk_arb.c b/drivers/gpu/nvgpu/common/linux/clk_arb.c index 95042389..82c97891 100644 --- a/drivers/gpu/nvgpu/common/linux/clk_arb.c +++ b/drivers/gpu/nvgpu/common/linux/clk_arb.c | |||
@@ -423,6 +423,12 @@ mutex_fail: | |||
423 | return err; | 423 | return err; |
424 | } | 424 | } |
425 | 425 | ||
426 | void nvgpu_clk_arb_send_thermal_alarm(struct gk20a *g) | ||
427 | { | ||
428 | nvgpu_clk_arb_schedule_alarm(g, | ||
429 | (0x1UL << NVGPU_GPU_EVENT_ALARM_THERMAL_ABOVE_THRESHOLD)); | ||
430 | } | ||
431 | |||
426 | void nvgpu_clk_arb_schedule_alarm(struct gk20a *g, u32 alarm) | 432 | void nvgpu_clk_arb_schedule_alarm(struct gk20a *g, u32 alarm) |
427 | { | 433 | { |
428 | struct nvgpu_clk_arb *arb = g->clk_arb; | 434 | struct nvgpu_clk_arb *arb = g->clk_arb; |