On Mon, Mar 4, 2024 at 9:55 AM Dawei Li <dawei.li@xxxxxxxxxxxx> wrote:
Current THREAD_SIZE_OERDER implementatin is not generic for common case. Improve it by: - Define THREAD_SIZE_ORDER by specific platform configs. - Calculate THREAD_SIZE by THREAD_SIZE_ORDER. Suggested-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Signed-off-by: Dawei Li <dawei.li@xxxxxxxxxxxx> --- V1 -> V2: - Remove ilog2(). - Calculate THREAD_SIZE by THREAD_SIZE_ORDER.
Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> i.e. will queue in the m68k tree for v6.10. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds