Revert "linux58-tkg: Add rebased BMQ from 5.7. (#38)"
This reverts commit eef469774b
.
This commit is contained in:
@@ -48,8 +48,8 @@ _tkg_srcprep() {
|
||||
fi
|
||||
patch -Np1 -i ../0005-glitched-pds.patch
|
||||
elif [ "${_cpusched}" == "bmq" ]; then
|
||||
# Project C / BMQ
|
||||
patch -Np1 -i ../0009-prjc_v5.7-r3.patch
|
||||
# BMQ
|
||||
patch -Np1 -i ../0009-bmq_v5.8-r0.patch
|
||||
if [ "${_aggressive_ondemand}" == "true" ]; then
|
||||
patch -Np1 -i ../0009-glitched-ondemand-bmq.patch
|
||||
fi
|
||||
@@ -167,9 +167,9 @@ _tkg_srcprep() {
|
||||
if [ "$CONDITION0" == "1" ]; then
|
||||
msg2 "Using default CPU sched yield type (1)"
|
||||
elif [ "$CONDITION0" == "2" ]; then
|
||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 2;/' ./kernel/sched/alt_core.c
|
||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 2;/' ./kernel/sched/"${_cpusched}".c
|
||||
else
|
||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 0;/' ./kernel/sched/alt_core.c
|
||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 0;/' ./kernel/sched/"${_cpusched}".c
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -211,7 +211,7 @@ _tkg_srcprep() {
|
||||
elif [ "${_cpusched}" == "pds" ]; then
|
||||
sed -i -e "s/#define SCHED_DEFAULT_RR (4)/#define SCHED_DEFAULT_RR (${_rrvalue})/" ./kernel/sched/"${_cpusched}".c
|
||||
elif [ "${_cpusched}" == "bmq" ]; then
|
||||
sed -i -e "s/u64 sched_timeslice_ns __read_mostly = (4 * 1000 * 1000);/u64 sched_timeslice_ns __read_mostly = (${_rrvalue} * 1000 * 1000);/" ./kernel/sched/alt_core.c
|
||||
sed -i -e "s/u64 sched_timeslice_ns __read_mostly = (4 * 1000 * 1000);/u64 sched_timeslice_ns __read_mostly = (${_rrvalue} * 1000 * 1000);/" ./kernel/sched/"${_cpusched}".c
|
||||
fi
|
||||
else
|
||||
if [ "${_cpusched}" == "bmq" ]; then
|
||||
|
Reference in New Issue
Block a user