forked from Ivasoft/openwrt
Revert "x86: add amd microcode entries to grub config"
This reverts commit a822283c7e.
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
12
target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
Normal file
12
target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2018 OpenWrt.org
|
||||
|
||||
do_load_x86_ucode() {
|
||||
if grep -q AuthenticAMD /proc/cpuinfo; then
|
||||
if [ -e "/sys/devices/system/cpu/microcode/reload" ]; then
|
||||
echo 1 > /sys/devices/system/cpu/microcode/reload
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main do_load_x86_ucode
|
||||
Reference in New Issue
Block a user