aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2018-10-31 18:48:37 +0100
committerJohn Crispin <john@phrozen.org>2018-11-26 12:05:45 +0100
commita822283c7e56bb3b409712e0eb9af5a91aac247d (patch)
tree3ffa392d6dcd5cbb998f4404516b61a32e084bdc /target/linux/x86/base-files
parent946ffe470d923fdde53db68592437194e0c276fc (diff)
downloadupstream-a822283c7e56bb3b409712e0eb9af5a91aac247d.tar.gz
upstream-a822283c7e56bb3b409712e0eb9af5a91aac247d.tar.bz2
upstream-a822283c7e56bb3b409712e0eb9af5a91aac247d.zip
x86: add amd microcode entries to grub config
Create initrd enries for x86 images, that'll load amd microcode as early as possible. Also remove the preinit script responsible for late load of microcode. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/x86/base-files')
-rw-r--r--target/linux/x86/base-files/lib/preinit/02_load_x86_ucode12
1 files changed, 0 insertions, 12 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/02_load_x86_ucode b/target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
deleted file mode 100644
index d3a23e24b2..0000000000
--- a/target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/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