From 90a34f9904aa2f1409c500d2484097ab3f26515a Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Mon, 21 Sep 2020 13:48:17 +0200 Subject: [PATCH] linux54-tkg: Use -O2 by default instead of -O3. It's been reportedly problematic lately - possibly limited to some distros - and all newer kernel versions defaulted to -O2 for some time now. --- linux54-tkg/customization.cfg | 2 +- linux54-tkg/linux54-tkg-config/generic-desktop-profile.cfg | 2 +- linux54-tkg/linux54-tkg-config/ryzen-desktop-profile.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux54-tkg/customization.cfg b/linux54-tkg/customization.cfg index 7f055cf..7e6910e 100644 --- a/linux54-tkg/customization.cfg +++ b/linux54-tkg/customization.cfg @@ -100,7 +100,7 @@ _fsync="" _zenify="true" # compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "2" -_compileroptlevel="2" +_compileroptlevel="1" # CPU compiler optimizations - Defaults to generic optimizations if left empty # AMD CPUs : "k8" "k8sse3" "k10" "barcelona" "bobcat" "jaguar" "bulldozer" "piledriver" "steamroller" "excavator" "zen" "zen2" diff --git a/linux54-tkg/linux54-tkg-config/generic-desktop-profile.cfg b/linux54-tkg/linux54-tkg-config/generic-desktop-profile.cfg index 5d66cc5..24172f9 100644 --- a/linux54-tkg/linux54-tkg-config/generic-desktop-profile.cfg +++ b/linux54-tkg/linux54-tkg-config/generic-desktop-profile.cfg @@ -30,7 +30,7 @@ _voluntary_preempt="false" _zenify="true" # compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "2" -_compileroptlevel="2" +_compileroptlevel="1" # Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false" _random_trust_cpu="false" diff --git a/linux54-tkg/linux54-tkg-config/ryzen-desktop-profile.cfg b/linux54-tkg/linux54-tkg-config/ryzen-desktop-profile.cfg index 9e51939..ed8a718 100644 --- a/linux54-tkg/linux54-tkg-config/ryzen-desktop-profile.cfg +++ b/linux54-tkg/linux54-tkg-config/ryzen-desktop-profile.cfg @@ -30,7 +30,7 @@ _voluntary_preempt="false" _zenify="true" # compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "2" -_compileroptlevel="2" +_compileroptlevel="1" # Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false" _random_trust_cpu="false"