Messages in this thread | | | From | Chen-Yu Tsai <> | Date | Tue, 21 Feb 2023 15:12:34 +0800 | Subject | Re: [PATCH v1 6/9] soc: mediatek: mtk-mutex: Replace max handles number with definition |
| |
On Thu, Feb 16, 2023 at 9:02 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Replace the magic number "10", defining the maximum number of supported > handles with a MTK_MUTEX_MAX_HANDLES definition. > While at it, also change the type for `id` from a signed integer to > a unsigned 8 bits integer to save some (small) memory footprint, as > this number is never higher than 10.
Depending on alignment of bool, we might not get that saving.
> This cleanup brings no functional changes. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
| |