]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: Move __arch_cpu_idle() to .cpuidle.text section
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 14 May 2025 14:17:52 +0000 (22:17 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 14 May 2025 14:17:52 +0000 (22:17 +0800)
commit3e245b7b74c3a2ead5fa4bad27cc275284c75189
tree6060e3de2374a7355d2183bdf2aab6daed90f107
parent90436d234230e9a950ccd87831108b688b27a234
LoongArch: Move __arch_cpu_idle() to .cpuidle.text section

Now arch_cpu_idle() is annotated with __cpuidle which means it is in
the .cpuidle.text section, but __arch_cpu_idle() isn't. Thus, fix the
missing .cpuidle.text section assignment for __arch_cpu_idle() in order
to correct backtracing with nmi_backtrace().

The principle is similar to the commit 97c8580e85cf81c ("MIPS: Annotate
cpu_wait implementations with __cpuidle")

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/genex.S