Skip to content

Commit

Permalink
feat(kernel): Enable full preemption by default, reduces latency in c…
Browse files Browse the repository at this point in the history
…ertain workloads.
  • Loading branch information
KyleGospo committed Aug 6, 2024
1 parent c383bd1 commit 6fcd085
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)

# SCRIPT VERSION
HWS_VER=45
HWS_VER=46
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)

Expand Down Expand Up @@ -134,6 +134,11 @@ if [[ ! $KARGS =~ "disable_ertm" ]]; then
NEEDED_KARGS+=("--append-if-missing=bluetooth.disable_ertm=1")
fi

if [[ ! $KARGS =~ "preempt" ]]; then
echo "Adding needed kargs for full preemption"
NEEDED_KARGS+=("--append-if-missing=preempt=full")
fi

if [[ $KARGS =~ "nomodeset" ]]; then
echo "Removing nomodeset"
NEEDED_KARGS+=("--delete-if-present=nomodeset")
Expand Down

0 comments on commit 6fcd085

Please sign in to comment.