Re: [PATCH] clocksource/drivers/ingenic: Fix section mismatch

2020-11-25 Thread Zhou Yanjie
Hi Daniel, 在 2020/11/25 下午6:23, Daniel Lezcano 写道: The function ingenic_tcu_get_clock() is annotated for the __init section but it is actually called from the online cpu callback. That will lead to a crash if a CPU is hotplugged after boot time. Remove the __init annotatation for the

Re: [PATCH] clocksource/drivers/ingenic: Fix section mismatch

2020-11-25 Thread Paul Cercueil
Hi Daniel, Le mer. 25 nov. 2020 à 11:23, Daniel Lezcano a écrit : The function ingenic_tcu_get_clock() is annotated for the __init section but it is actually called from the online cpu callback. That will lead to a crash if a CPU is hotplugged after boot time. Remove the __init annotatation

[PATCH] clocksource/drivers/ingenic: Fix section mismatch

2020-11-25 Thread Daniel Lezcano
The function ingenic_tcu_get_clock() is annotated for the __init section but it is actually called from the online cpu callback. That will lead to a crash if a CPU is hotplugged after boot time. Remove the __init annotatation for the ingenic_tcu_get_clock() function. Fixes: f19d838d08fc