mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: move generic preempt hals to common
- Move fifo.preempt_runlists_for_rc and fifo.preempt_tsg hals to common source file as nvgpu_fifo_preempt_runlists_for_rc and nvgpu_fifo_preempt_tsg. Jira NVGPU-4881 Change-Id: I31f7973276c075130d8a0ac684c6c99e35be6017 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2323866 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
fa73b73ba7
commit
c6908922e5
@@ -699,10 +699,6 @@ static void mock_runlist_write_state(struct gk20a *g, u32 runlist_mask,
|
||||
{
|
||||
}
|
||||
|
||||
static void mock_fifo_preempt_runlists_for_rc(struct gk20a *g, u32 runlist_mask)
|
||||
{
|
||||
}
|
||||
|
||||
int test_quiesce(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
int ret = UNIT_SUCCESS;
|
||||
@@ -733,7 +729,6 @@ int test_quiesce(struct unit_module *m, struct gk20a *g, void *args)
|
||||
|
||||
/* mock out fifo HALs called during quiesce */
|
||||
g->ops.runlist.write_state = mock_runlist_write_state;
|
||||
g->ops.fifo.preempt_runlists_for_rc = mock_fifo_preempt_runlists_for_rc;
|
||||
|
||||
nvgpu_sw_quiesce(g);
|
||||
/* wait for quiesce thread to complete */
|
||||
|
||||
Reference in New Issue
Block a user