Don't check RESOURCE_COUNTERS in new kernel

Closes: #13543

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2015-06-03 17:26:39 +08:00
Родитель 63823cd6c1
Коммит 8bfc8102be
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -23,6 +23,11 @@ if ! command -v zgrep &> /dev/null; then
}
fi
kernelVersion="$(uname -r)"
kernelMajor="${kernelVersion%%.*}"
kernelMinor="${kernelVersion#$kernelMajor.}"
kernelMinor="${kernelMinor%%.*}"
is_set() {
zgrep "CONFIG_$1=[y|m]" "$CONFIG" > /dev/null
}
@ -182,8 +187,12 @@ echo 'Optional Features:'
echo " $(wrap_color '(note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option "swapaccount=1")' bold black)"
fi
}
if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 18 ]; then
check_flags RESOURCE_COUNTERS
fi
flags=(
RESOURCE_COUNTERS
BLK_CGROUP
IOSCHED_CFQ
CGROUP_PERF