m68k: Calculate THREAD_SIZE from THREAD_SIZE_ORDER
authorDawei Li <dawei.li@shingroup.cn>
Mon, 4 Mar 2024 08:54:55 +0000 (16:54 +0800)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 2 Apr 2024 07:33:21 +0000 (09:33 +0200)
commit70d830e337f999ad186d0093e973805eaf6fb8ca
tree444b9bce30c2e072db13d9eb0fe3a9062d140829
parent4cece764965020c22cff7665b18a012006359095
m68k: Calculate THREAD_SIZE from THREAD_SIZE_ORDER

Current THREAD_SIZE_ORDER implementation is not generic.

Improve it by:
  - Defining THREAD_SIZE_ORDER based on the specific platform config,
  - Calculating THREAD_SIZE from THREAD_SIZE_ORDER.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20240304085455.125063-1-dawei.li@shingroup.cn
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/thread_info.h