From 29afa3e91c75707531e1c449f3312b0747a3a44e Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 26 Feb 2021 22:15:55 +0100 Subject: [PATCH] Don't prompt for voluntary preemption setting. We want it disabled for most users as it tends to create latency problems in some situations and it's not a recommended setting unless you're using a GPU passthrough VM. --- linux-tkg-config/prepare | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 518f38d..5941e3c 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1002,14 +1002,7 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n fi # voluntary preempt - if [ -z "$_voluntary_preempt" ]; then - plain "" - plain "Use explicit preemption points?" - plain "It can improve latency on PDS (at the cost of throughput)" - plain "and improve throughput on other schedulers (at the cost of latency)" - read -rp "`echo $' > N/y : '`" CONDITION5; - fi - if [[ "$CONDITION5" =~ [yY] ]] || [ "$_voluntary_preempt" = "true" ]; then + if [ "$_voluntary_preempt" = "true" ]; then sed -i -e 's/CONFIG_PREEMPT=y/# CONFIG_PREEMPT is not set/' ./.config sed -i -e 's/CONFIG_PREEMPT_LL=y/# CONFIG_PREEMPT_LL is not set/' ./.config sed -i -e 's/# CONFIG_PREEMPT_VOLUNTARY is not set/CONFIG_PREEMPT_VOLUNTARY=y/' ./.config