aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2022-11-23 09:27:35 +0100
committerGreg Kroah-Hartman <[email protected]>2022-11-23 09:39:24 +0100
commit94ec165c9f98189ce9aa50cfcb7181ba23f92eb7 (patch)
treed93651d5aa17564c4e78c063f12d1551b4f758d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
parent8682ab0eea89c300ebb120c02ead3999ca5560a8 (diff)
serial: atmel: cleanup atmel_start+stop_tx()
Define local variables holding information about whether pdc or dma is used in the HW. These are retested several times by calls to atmel_use_pdc_tx() and atmel_use_dma_tx(). So to make the code more readable, simply cache the values. This is also a preparatory patch for the next one (where is_pdc is used once more in atmel_stop_tx()). Cc: Richard Genoud <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Claudiu Beznea <[email protected]> Cc: [email protected] Reported-by: Michael Walle <[email protected]> Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c')
0 files changed, 0 insertions, 0 deletions