-
由 Zheng Zengkai 提交于
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6BB CVE: NA -------------------------------- As 5064550d422d ("random: clear fast pool, crng, and batches in cpuhp bring up") add two elements into enum cpuhp_state, the kabi of following interfaces changed: __cpuhp_remove_state_cpuslocked() __cpuhp_state_add_instance() __cpuhp_setup_state() __cpuhp_setup_state_cpuslocked() __cpuhp_remove_state() __cpuhp_state_remove_instance() To fix the kabi change, Firstly, remove the newly-added elements and related code. Secondly, to meet the sequential relationship with workqueue cpuhp callbacks, put the random cpuhp online callback function into the workqueue cpuhp online callback function just before its exit, and put the random cpuhp prepare callback function into the workqueue cpuhp prepare callback function on the entry. Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NGUO Zihua <guozihua@huawei.com> Reviewed-by: Nchenjun <chenjun102@huawei.com> Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
06aebdfb