linux-tkg: Ask user about the CFS fallback
Can be bypassed to exit with _nofallback="true" hidden option
This commit is contained in:
parent
333a3a46db
commit
469624d1ac
@ -74,7 +74,16 @@ elif [ "$_cpusched" == "pds" ]; then
|
||||
elif [ "$_cpusched" == "bmq" ]; then
|
||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
||||
else
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
if [ "$_nofallback" != "true" ]; then
|
||||
warning "Something is wrong with your cpusched selection. Do you want to fallback to CFS (default)?"
|
||||
read -rp "`echo $' > N/y : '`" _fallback;
|
||||
fi
|
||||
if [ "$_fallback" == "y" ] || [ "$_nofallback" == "true" ]; then
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
else
|
||||
error "Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
source "$_where"/cpuschedset
|
||||
|
@ -93,7 +93,7 @@ _tkg_srcprep() {
|
||||
# BMQ
|
||||
patch -Np1 -i ../0009-bmq_v5.4-r2.patch
|
||||
patch -Np1 -i ../0009-glitched-bmq.patch
|
||||
else
|
||||
elif [ "${_cpusched}" == "cfs" ]; then
|
||||
patch -Np1 -i ../0003-glitched-cfs.patch
|
||||
fi
|
||||
|
||||
|
@ -53,7 +53,16 @@ _tkg_initscript() {
|
||||
elif [ "$_cpusched" == "bmq" ]; then
|
||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
||||
else
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
if [ "$_nofallback" != "true" ]; then
|
||||
warning "Something is wrong with your cpusched selection. Do you want to fallback to CFS (default)?"
|
||||
read -rp "`echo $' > N/y : '`" _fallback;
|
||||
fi
|
||||
if [ "$_fallback" == "y" ] || [ "$_nofallback" == "true" ]; then
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
else
|
||||
error "Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
source "$_where"/cpuschedset
|
||||
@ -182,7 +191,6 @@ _tkg_srcprep() {
|
||||
patch -Np1 -i "$srcdir"/0005-glitched-pds.patch
|
||||
|
||||
elif [ "${_cpusched}" == "bmq" ]; then
|
||||
|
||||
# Project C / BMQ
|
||||
msg2 "Applying Project C / BMQ base patch"
|
||||
|
||||
@ -195,7 +203,8 @@ _tkg_srcprep() {
|
||||
|
||||
msg2 "Applying Glitched BMQ patch"
|
||||
patch -Np1 -i "$srcdir"/0009-glitched-bmq.patch
|
||||
else
|
||||
|
||||
elif [ "${_cpusched}" == "cfs" ]; then
|
||||
msg2 "Applying Glitched CFS patch"
|
||||
patch -Np1 -i "$srcdir"/0003-glitched-cfs.patch
|
||||
fi
|
||||
|
@ -72,8 +72,16 @@ elif [ "$_cpusched" == "cfs" ]; then
|
||||
elif [ "$_cpusched" == "bmq" ]; then
|
||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
||||
else
|
||||
warning "Invalid selection - Falling back to CFS..."
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
if [ "$_nofallback" != "true" ]; then
|
||||
warning "Something is wrong with your cpusched selection. Do you want to fallback to CFS (default)?"
|
||||
read -rp "`echo $' > N/y : '`" _fallback;
|
||||
fi
|
||||
if [ "$_fallback" == "y" ] || [ "$_nofallback" == "true" ]; then
|
||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||
else
|
||||
error "Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
source "$_where"/cpuschedset
|
||||
|
@ -54,7 +54,7 @@ _tkg_srcprep() {
|
||||
patch -Np1 -i ../0009-glitched-ondemand-bmq.patch
|
||||
fi
|
||||
patch -Np1 -i ../0009-glitched-bmq.patch
|
||||
else
|
||||
elif [ "${_cpusched}" == "cfs" ]; then
|
||||
patch -Np1 -i ../0003-glitched-cfs.patch
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user