mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-02 20:16:59 +00:00
x86: add preinit hook to reload microcode
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
This commit is contained in:
parent
681aaaf719
commit
571d3def6b
10
target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
Normal file
10
target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2018 OpenWrt.org
|
||||||
|
|
||||||
|
do_load_x86_ucode() {
|
||||||
|
if [ -e "/sys/devices/system/cpu/microcode/reload" ]; then
|
||||||
|
echo 1 > /sys/devices/system/cpu/microcode/reload
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
boot_hook_add preinit_main do_load_x86_ucode
|
Loading…
Reference in New Issue
Block a user