video: tegra: host: gk20a: Rework channel preempt
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 9 Sep 2013 07:48:46 +0000 (10:48 +0300)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 27 Sep 2013 00:47:37 +0000 (17:47 -0700)
commit160a93cd76333f76f2bbb0b8aa94e2bf50afb11e
tree1b63b8bbef041fe85d82cebcf66630711faa934d
parentd1db6898368ea60ab8f6f4f310653ab750b85ef7
video: tegra: host: gk20a: Rework channel preempt

gk20a_fifo_preempt_channel() required engine id for pre-empting.
This parameter should not be required as we simply want to schedule
the given channel away and this has nothing to do with any engine.

This patch removes the unnecessary parameter and makes preempt
work even if the channel has active work on multiple engines (i.e.
ctx save in a single engine and some operation on another).

Bug 1351268

Change-Id: Ie92a9ab3f007d0a8bb3aec5b7e128969a3e3025f
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/272023
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/channel_gk20a.c
drivers/video/tegra/host/gk20a/fifo_gk20a.c
drivers/video/tegra/host/gk20a/fifo_gk20a.h