mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/radeon: replace nested min calls with min3
In dce6_available_bandwidth() and dce8_available_bandwidth(), replace nested min() calls with min3(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4ecf76a3fe
commit
850b107765
|
|
@ -9063,7 +9063,7 @@ static u32 dce8_available_bandwidth(struct dce8_wm_params *wm)
|
|||
u32 data_return_bandwidth = dce8_data_return_bandwidth(wm);
|
||||
u32 dmif_req_bandwidth = dce8_dmif_request_bandwidth(wm);
|
||||
|
||||
return min(dram_bandwidth, min(data_return_bandwidth, dmif_req_bandwidth));
|
||||
return min3(dram_bandwidth, data_return_bandwidth, dmif_req_bandwidth);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2150,7 +2150,7 @@ static u32 dce6_available_bandwidth(struct dce6_wm_params *wm)
|
|||
u32 data_return_bandwidth = dce6_data_return_bandwidth(wm);
|
||||
u32 dmif_req_bandwidth = dce6_dmif_request_bandwidth(wm);
|
||||
|
||||
return min(dram_bandwidth, min(data_return_bandwidth, dmif_req_bandwidth));
|
||||
return min3(dram_bandwidth, data_return_bandwidth, dmif_req_bandwidth);
|
||||
}
|
||||
|
||||
static u32 dce6_average_bandwidth(struct dce6_wm_params *wm)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user