Commit 06aebdfb authored by Zheng Zengkai's avatar Zheng Zengkai
Browse files

random: Fix kabi change due to enum cpuhp_state

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: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarGUO Zihua <guozihua@huawei.com>
Reviewed-by: default avatarchenjun <chenjun102@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent d3fa4d25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment