summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorptr13372021-04-17 12:23:18 +0200
committerptr13372021-04-17 12:23:18 +0200
commit9a58c37ca5a7253397e693eef3c0bc8fa7e57cc0 (patch)
tree70b92517b9522117b7ce74abb4e97f635003dfb3
parentbe43d9a583a84a545b081e79ee983dda1dfcdd33 (diff)
downloadaur-9a58c37ca5a7253397e693eef3c0bc8fa7e57cc0.tar.gz
added some patches and some other things
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD24
-rw-r--r--cacule_config434
3 files changed, 458 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index edfe0f89a80a..88f7f280069f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cacule-rdb
pkgdesc = Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets
pkgver = 5.11.15
- pkgrel = 5
+ pkgrel = 6
url = http://www.kernel.org/
arch = x86_64
license = GPL2
@@ -17,33 +17,35 @@ pkgbase = linux-cacule-rdb
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/cacule-patches/cacule-5.11.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/cacule-patches/0002-cacule-Change-default-preemption-latency-to-2ms-for-.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/cpu-patches/0001-cpu-5.11-merge-graysky-s-patchset.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/zen-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/misc/0005-Disable-CPU_FREQ_GOV_SCHEDUTIL.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/zen-patches/0002-ZEN-intel-pstate-Implement-enable-parameter.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/futex-patches/0001-futex2-resync-from-gitlab.collabora.com.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/wine-patches/0007-v5.11-winesync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/futex-patches/0007-v5.11-fsync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/misc/0002-init-Kconfig-enable-O3-for-all-arches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/misc/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/bbr2-patches/0001-bbr2-5.11-introduce-BBRv2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/btrfs-patches/0001-btrfs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/zswap-patches/0001-zswap-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/lqx-patches/0001-lqx-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/xanmod-patches/0001-xanmod-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/mm-patches/0001-mm-patches.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/zstd-patches/0001-zstd-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/main/5.11/zstd-patches/0001-zstd-dev-patches.patch
sha256sums = d6a7845357cf56b695e50b4c60e09a8832b651ac701062a76145550a8e77c44a
sha256sums = 2e3b1f1b6ceb958a3e4b2a4740c77953287a2cdb156234af8c9bf9ddad9268e3
sha256sums = c539655de9eef5084b6349389b1a2fac3aaab274149c9b95667cca93570166ea
sha256sums = cf00507d6881b737a9814d152e27b1db02f45a4d8a8ba3f4c9f542f0964ac697
sha256sums = b74526f681f3eafa12f74764e79792949cb949fe1c8424118746c48fe16a09a8
- sha256sums = 1158623c992e0bcf87e0b765554f15f367c5ff19148a111f0bc88f06fa4743cc
sha256sums = 39a36b356e2452aa244f80700524c73884f995bd29ccabd3bdb760480f37ce8e
- sha256sums = 0d9179a3dac476d832c50027f62480cfa7d462bf35acc0fcf3b863e9fac01edf
sha256sums = 05cebcd1dbab8d5f8d26b5351ba0237d36b8e848c830dad7a4f7d1c58cc7824c
sha256sums = d220593436059b76c975ceee061fd124dec37fff774db45a4419c2ce1839c351
sha256sums = b302ba6c5bbe8ed19b20207505d513208fae1e678cf4d8e7ac0b154e5fe3f456
sha256sums = 15524321f6e532747be4145341dd6d426a4240bf190e85160bdf06ae6ea0ff20
+ sha256sums = bc35b9f8f695d3f0ef88ba1a5abad8c881c8ad1eda681dd139d887df6f7a9849
sha256sums = 68dcadab17c405335633e0ded03d13a78ee524311bc927df2a0f0fc1a1463caf
- sha256sums = 4e25daa2c11d9f24af8d34b7621689ab3beeb5af185b1178cdec7f610283b5be
- sha256sums = 251327be9627d8039e8c344d1beca19982676ba1eadc1b97251531fbd7611108
+ sha256sums = b268f8f50734239fee6910d8d7cfa5742e9f17cbd9e90f258139a5df44fed407
+ sha256sums = a571b8db83f36d36222b3b11ed607fc93728a351782edbe1129b623c236f050e
+ sha256sums = f797fb4fd2ac4c1116e988e9ccf8bf1b4d9ba53511c388b958f17888d33cf994
sha256sums = 3fe144975c1b30b983fca9e34ba58e7b4704456a340130584a1aca0feabdc22e
+ sha256sums = a8eed585260d153c3ead50fc2ec61f20d4ed7c892d4204c97391983e98ccea0e
pkgname = linux-cacule-rdb
pkgdesc = The Linux kernel and modules with the cacule scheduler and other patchsets
diff --git a/PKGBUILD b/PKGBUILD
index f58f50eb42fe..e744e6ae5d3c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -42,7 +42,7 @@ fi
pkgbase=linux-cacule-rdb
pkgver=5.11.15
-pkgrel=5
+pkgrel=6
pkgdesc='Linux-CacULE-RDB Kernel by Hamad Marri and with some other patchsets'
url="http://www.kernel.org/"
arch=(x86_64)
@@ -57,34 +57,36 @@ source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.xz"
"${_patchsource}/cacule-patches/cacule-5.11.patch"
"${_patchsource}/cacule-patches/0002-cacule-Change-default-preemption-latency-to-2ms-for-.patch"
"${_patchsource}/cpu-patches/0001-cpu-5.11-merge-graysky-s-patchset.patch"
- "${_patchsource}/zen-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch"
"${_patchsource}/misc/0005-Disable-CPU_FREQ_GOV_SCHEDUTIL.patch"
- "${_patchsource}/zen-patches/0002-ZEN-intel-pstate-Implement-enable-parameter.patch"
"${_patchsource}/futex-patches/0001-futex2-resync-from-gitlab.collabora.com.patch"
"${_patchsource}/wine-patches/0007-v5.11-winesync.patch"
"${_patchsource}/futex-patches/0007-v5.11-fsync.patch"
"${_patchsource}/misc/0002-init-Kconfig-enable-O3-for-all-arches.patch"
+ "${_patchsource}/misc/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch"
"${_patchsource}/bbr2-patches/0001-bbr2-5.11-introduce-BBRv2.patch"
- "${_patchsource}/btrfs-patches/0001-btrfs-patches.patch"
- "${_patchsource}/zswap-patches/0001-zswap-patches.patch"
- "${_patchsource}/zstd-patches/0001-zstd-patches.patch")
+ "${_patchsource}/lqx-patches/0001-lqx-patches.patch"
+ "${_patchsource}/xanmod-patches/0001-xanmod-patches.patch"
+ "${_patchsource}/mm-patches/0001-mm-patches.patch"
+ "${_patchsource}/zstd-patches/0001-zstd-patches.patch"
+ "${_patchsource}/zstd-patches/0001-zstd-dev-patches.patch")
sha256sums=('d6a7845357cf56b695e50b4c60e09a8832b651ac701062a76145550a8e77c44a'
'2e3b1f1b6ceb958a3e4b2a4740c77953287a2cdb156234af8c9bf9ddad9268e3'
'c539655de9eef5084b6349389b1a2fac3aaab274149c9b95667cca93570166ea'
'cf00507d6881b737a9814d152e27b1db02f45a4d8a8ba3f4c9f542f0964ac697'
'b74526f681f3eafa12f74764e79792949cb949fe1c8424118746c48fe16a09a8'
- '1158623c992e0bcf87e0b765554f15f367c5ff19148a111f0bc88f06fa4743cc'
'39a36b356e2452aa244f80700524c73884f995bd29ccabd3bdb760480f37ce8e'
- '0d9179a3dac476d832c50027f62480cfa7d462bf35acc0fcf3b863e9fac01edf'
'05cebcd1dbab8d5f8d26b5351ba0237d36b8e848c830dad7a4f7d1c58cc7824c'
'd220593436059b76c975ceee061fd124dec37fff774db45a4419c2ce1839c351'
'b302ba6c5bbe8ed19b20207505d513208fae1e678cf4d8e7ac0b154e5fe3f456'
'15524321f6e532747be4145341dd6d426a4240bf190e85160bdf06ae6ea0ff20'
+ 'bc35b9f8f695d3f0ef88ba1a5abad8c881c8ad1eda681dd139d887df6f7a9849'
'68dcadab17c405335633e0ded03d13a78ee524311bc927df2a0f0fc1a1463caf'
- '4e25daa2c11d9f24af8d34b7621689ab3beeb5af185b1178cdec7f610283b5be'
- '251327be9627d8039e8c344d1beca19982676ba1eadc1b97251531fbd7611108'
- '3fe144975c1b30b983fca9e34ba58e7b4704456a340130584a1aca0feabdc22e')
+ 'b268f8f50734239fee6910d8d7cfa5742e9f17cbd9e90f258139a5df44fed407'
+ 'a571b8db83f36d36222b3b11ed607fc93728a351782edbe1129b623c236f050e'
+ 'f797fb4fd2ac4c1116e988e9ccf8bf1b4d9ba53511c388b958f17888d33cf994'
+ '3fe144975c1b30b983fca9e34ba58e7b4704456a340130584a1aca0feabdc22e'
+ 'a8eed585260d153c3ead50fc2ec61f20d4ed7c892d4204c97391983e98ccea0e')
export KBUILD_BUILD_HOST=${KBUILD_BUILD_HOST:-archlinux}
export KBUILD_BUILD_USER=${KBUILD_BUILD_USER:-makepkg}
diff --git a/cacule_config b/cacule_config
index aa3faa43e4fd..65b7628455ab 100644
--- a/cacule_config
+++ b/cacule_config
@@ -44,6 +44,440 @@ scripts/config --enable CONFIG_STACK_VALIDATION
echo "Enable IKCONFIG"
scripts/config --enable CONFIG_IKCONFIG
scripts/config --enable CONFIG_IKCONFIG_PROC
+
+plain ""
+ plain "#########################################"
+ plain "Disable debug options?"
+ read -rp "`echo $' > 1.Disable\n > 2.Keep\n > Default (Disable)\nchoice[1-2]: '`" _debug
+ if [[ "$_debug" = "1" ]]; then
+ msg2 "Disable debug options"
+ scripts/config --disable CONFIG_SLUB_DEBUG
+ scripts/config --disable CONFIG_PM_DEBUG
+ scripts/config --disable CONFIG_PM_ADVANCED_DEBUG
+ scripts/config --disable CONFIG_PM_SLEEP_DEBUG
+ scripts/config --disable CONFIG_ACPI_DEBUG
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_DEBUG_PREEMPT
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --disable CONFIG_DEBUG_INFO_REDUCED
+ scripts/config --disable CONFIG_DEBUG_INFO_COMPRESSED
+ scripts/config --disable CONFIG_DEBUG_INFO_SPLI
+ scripts/config --disable CONFIG_GDB_SCRIPTS
+ scripts/config --disable CONFIG_DEBUG_INFO_DWARF4
+ scripts/config --disable CONFIG_DEBUG_INFO_BTF
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_PRELOAD_UMD
+ scripts/config --disable CONFIG_BPF_STREAM_PARSER
+ scripts/config --disable CONFIG_DMA_API_DEBUG
+ scripts/config --disable CONFIG_DMA_API_DEBUG_SG
+ scripts/config --disable CONFIG_DMA_MAP_BENCHMARK
+ scripts/config --disable CONFIG_DEBUG_FS
+ scripts/config --disable CONFIG_GCOV_KERNEL
+ scripts/config --disable CONFIG_GCOV_PROFILE_ALL
+ scripts/config --disable CONFIG_DEBUG_FS
+ scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
+ scripts/config --disable CONFIG_ACPI_DEBUGGER
+ scripts/config --disable CONFIG_ACPI_DEBUGGER_USER
+ scripts/config --disable CONFIG_ACPI_EC_DEBUGFS
+ scripts/config --disable CONFIG_ACPI_APEI_ERST_DEBUG
+ scripts/config --disable CONFIG_NFIT_SECURITY_DEBUG
+ scripts/config --disable CONFIG_DMADEVICES_DEBUG
+ scripts/config --disable CONFIG_DMADEVICES_VDEBUG
+ scripts/config --disable CONFIG_DMATEST
+ scripts/config --disable CONFIG_BTRFS_DEBUG
+ scripts/config --disable CONFIG_BTRFS_FS_REF_VERIFY
+ scripts/config --disable CONFIG_BTRFS_ASSERT
+ scripts/config --disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS
+ scripts/config --disable CONFIG_BTRFS_FS_CHECK_INTEGRITY
+ scripts/config --disable CONFIG_EXT4_DEBUG
+ scripts/config --disable CONFIG_EXT4_KUNIT_TESTS
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG_MESSAGES
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_KUNIT_TEST
+ scripts/config --disable CONFIG_POWER_SUPPLY_DEBUG
+ scripts/config --disable CONFIG_NTFS_DEBUG
+ scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
+ scripts/config --disable CONFIG_CIFS_STATS2
+ scripts/config --disable CONFIG_CIFS_DEBUG
+ scripts/config --disable CONFIG_CIFS_DEBUG2
+ scripts/config --disable CONFIG_CIFS_DEBUG_DUMP_KEYS
+ scripts/config --disable CONFIG_JBD2_DEBUG
+ scripts/config --disable CONFIG_CONFIG_NFS_DEBUG
+ scripts/config --disable CONFIG_TRACE_IRQFLAGS_SUPPORT
+ scripts/config --disable CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT
+ scripts/config --disable CONFIG_EARLY_PRINTK_USB
+ scripts/config --disable CONFIG_X86_VERBOSE_BOOTUP
+ scripts/config --disable CONFIG_EARLY_PRINTK
+ scripts/config --disable CONFIG_EARLY_PRINTK_DBGP
+ scripts/config --disable CONFIG_EARLY_PRINTK_USB_XDBC
+ scripts/config --disable CONFIG_EFI_PGT_DUMP
+ scripts/config --disable CONFIG_DEBUG_TLBFLUSH
+ scripts/config --disable CONFIG_IOMMU_DEBUG
+ scripts/config --disable CONFIG_IOMMU_LEAK
+ scripts/config --disable CONFIG_HAVE_MMIOTRACE_SUPPORT
+ scripts/config --disable CONFIG_X86_DECODER_SELFTEST
+ scripts/config --disable CONFIG_IO_DELAY_0X80
+ scripts/config --disable CONFIG_IO_DELAY_0XED
+ scripts/config --disable CONFIG_IO_DELAY_UDELAY
+ scripts/config --disable CONFIG_IO_DELAY_NONE
+ scripts/config --disable CONFIG_DEBUG_BOOT_PARAMS
+ scripts/config --disable CONFIG_CPA_DEBUG
+ scripts/config --disable CONFIG_DEBUG_ENTRY
+ scripts/config --disable CONFIG_DEBUG_NMI_SELFTEST
+ scripts/config --disable CONFIG_DEBUG_IMR_SELFTEST
+ scripts/config --disable CONFIG_X86_DEBUG_FPU
+ scripts/config --disable CONFIG_PUNIT_ATOM_DEBUG
+ scripts/config --disable CONFIG_UNWINDER_ORC
+ scripts/config --disable CONFIG_UNWINDER_FRAME_POINTER
+ scripts/config --disable CONFIG_UNWINDER_GUESS
+ scripts/config --disable CONFIG_FRAME_POINTER
+ scripts/config --disable CONFIG_THINKPAD_ACPI_DEBUGFACILITIES
+ scripts/config --disable CONFIG_THINKPAD_ACPI_DEBUG
+ scripts/config --disable CONFIG_THINKPAD_ACPI_UNSAFE_LEDS
+ scripts/config --disable CONFIG_CMA_DEBUG
+ scripts/config --disable CONFIG_CMA_DEBUGFS
+ scripts/config --disable CONFIG_EDAC_DEBUG
+ scripts/config --disable CONFIG_ATM_IA_DEBUG
+ scripts/config --disable CONFIG_ATM_FORE200E_DEBUG
+ scripts/config --disable CONFIG_BCMA_DEBUG
+ elif [[ "$_debug" = "2" ]]; then
+ msg2 "Keep debug options"
+ else
+ msg2 "Disable debug options"
+ scripts/config --disable CONFIG_SLUB_DEBUG
+ scripts/config --disable CONFIG_PM_DEBUG
+ scripts/config --disable CONFIG_PM_ADVANCED_DEBUG
+ scripts/config --disable CONFIG_PM_SLEEP_DEBUG
+ scripts/config --disable CONFIG_ACPI_DEBUG
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_DEBUG_PREEMPT
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --disable CONFIG_DEBUG_INFO_REDUCED
+ scripts/config --disable CONFIG_DEBUG_INFO_COMPRESSED
+ scripts/config --disable CONFIG_DEBUG_INFO_SPLI
+ scripts/config --disable CONFIG_GDB_SCRIPTS
+ scripts/config --disable CONFIG_DEBUG_INFO_DWARF4
+ scripts/config --disable CONFIG_DEBUG_INFO_BTF
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_PRELOAD_UMD
+ scripts/config --disable CONFIG_BPF_STREAM_PARSER
+ scripts/config --disable CONFIG_DMA_API_DEBUG
+ scripts/config --disable CONFIG_DMA_API_DEBUG_SG
+ scripts/config --disable CONFIG_DMA_MAP_BENCHMARK
+ scripts/config --disable CONFIG_DEBUG_FS
+ scripts/config --disable CONFIG_GCOV_KERNEL
+ scripts/config --disable CONFIG_GCOV_PROFILE_ALL
+ scripts/config --disable CONFIG_DEBUG_FS
+ scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
+ scripts/config --disable CONFIG_ACPI_DEBUGGER
+ scripts/config --disable CONFIG_ACPI_DEBUGGER_USER
+ scripts/config --disable CONFIG_ACPI_EC_DEBUGFS
+ scripts/config --disable CONFIG_ACPI_APEI_ERST_DEBUG
+ scripts/config --disable CONFIG_NFIT_SECURITY_DEBUG
+ scripts/config --disable CONFIG_DMADEVICES_DEBUG
+ scripts/config --disable CONFIG_DMADEVICES_VDEBUG
+ scripts/config --disable CONFIG_DMATEST
+ scripts/config --disable CONFIG_BTRFS_DEBUG
+ scripts/config --disable CONFIG_BTRFS_FS_REF_VERIFY
+ scripts/config --disable CONFIG_BTRFS_ASSERT
+ scripts/config --disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS
+ scripts/config --disable CONFIG_BTRFS_FS_CHECK_INTEGRITY
+ scripts/config --disable CONFIG_EXT4_DEBUG
+ scripts/config --disable CONFIG_EXT4_KUNIT_TESTS
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_DEBUG_MESSAGES
+ scripts/config --disable CONFIG_SECURITY_APPARMOR_KUNIT_TEST
+ scripts/config --disable CONFIG_POWER_SUPPLY_DEBUG
+ scripts/config --disable CONFIG_NTFS_DEBUG
+ scripts/config --disable CONFIG_GENERIC_IRQ_DEBUGFS
+ scripts/config --disable CONFIG_CIFS_STATS2
+ scripts/config --disable CONFIG_CIFS_DEBUG
+ scripts/config --disable CONFIG_CIFS_DEBUG2
+ scripts/config --disable CONFIG_CIFS_DEBUG_DUMP_KEYS
+ scripts/config --disable CONFIG_JBD2_DEBUG
+ scripts/config --disable CONFIG_CONFIG_NFS_DEBUG
+ scripts/config --disable CONFIG_TRACE_IRQFLAGS_SUPPORT
+ scripts/config --disable CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT
+ scripts/config --disable CONFIG_EARLY_PRINTK_USB
+ scripts/config --disable CONFIG_X86_VERBOSE_BOOTUP
+ scripts/config --disable CONFIG_EARLY_PRINTK
+ scripts/config --disable CONFIG_EARLY_PRINTK_DBGP
+ scripts/config --disable CONFIG_EARLY_PRINTK_USB_XDBC
+ scripts/config --disable CONFIG_EFI_PGT_DUMP
+ scripts/config --disable CONFIG_DEBUG_TLBFLUSH
+ scripts/config --disable CONFIG_IOMMU_DEBUG
+ scripts/config --disable CONFIG_IOMMU_LEAK
+ scripts/config --disable CONFIG_HAVE_MMIOTRACE_SUPPORT
+ scripts/config --disable CONFIG_X86_DECODER_SELFTEST
+ scripts/config --disable CONFIG_IO_DELAY_0X80
+ scripts/config --disable CONFIG_IO_DELAY_0XED
+ scripts/config --disable CONFIG_IO_DELAY_UDELAY
+ scripts/config --disable CONFIG_IO_DELAY_NONE
+ scripts/config --disable CONFIG_DEBUG_BOOT_PARAMS
+ scripts/config --disable CONFIG_CPA_DEBUG
+ scripts/config --disable CONFIG_DEBUG_ENTRY
+ scripts/config --disable CONFIG_DEBUG_NMI_SELFTEST
+ scripts/config --disable CONFIG_DEBUG_IMR_SELFTEST
+ scripts/config --disable CONFIG_X86_DEBUG_FPU
+ scripts/config --disable CONFIG_PUNIT_ATOM_DEBUG
+ scripts/config --disable CONFIG_UNWINDER_ORC
+ scripts/config --disable CONFIG_UNWINDER_FRAME_POINTER
+ scripts/config --disable CONFIG_UNWINDER_GUESS
+ scripts/config --disable CONFIG_FRAME_POINTER
+ scripts/config --disable CONFIG_THINKPAD_ACPI_DEBUGFACILITIES
+ scripts/config --disable CONFIG_THINKPAD_ACPI_DEBUG
+ scripts/config --disable CONFIG_THINKPAD_ACPI_UNSAFE_LEDS
+ scripts/config --disable CONFIG_CMA_DEBUG
+ scripts/config --disable CONFIG_CMA_DEBUGFS
+ scripts/config --disable CONFIG_EDAC_DEBUG
+ scripts/config --disable CONFIG_ATM_IA_DEBUG
+ scripts/config --disable CONFIG_ATM_FORE200E_DEBUG
+ scripts/config --disable CONFIG_BCMA_DEBUG
+ fi
+ sleep 2s
+ plain ""
+plain "#########################################"
+plain "Set timer frequency"
+plain ""
+plain "100 HZ : 100 Hz is a typical choice for servers, SMP and NUMA systems"
+plain "with lots of processors that may show reduced performance if"
+plain "too many timer interrupts are occurring."
+plain ""
+plain "250 HZ : 250 Hz is a good compromise choice allowing server performance"
+plain "while also showing good interactive responsiveness even"
+plain "on SMP and NUMA systems. If you are going to be using NTSC video"
+plain "or multimedia, selected 300Hz instead."
+plain ""
+plain "300 HZ : 300 Hz is a good compromise choice allowing server performance"
+plain "while also showing good interactive responsiveness even"
+plain "on SMP and NUMA systems and exactly dividing by both PAL and"
+plain "NTSC frame rates for video and multimedia work."
+plain ""
+plain "750 HZ : 750 Hz is a balanced timer frequency. Provides fast interactivity"
+plain "on desktops with good smoothness without increasing CPU power"
+plain "consumption and sacrificing the battery life on laptops."
+plain ""
+plain "1000 HZ : 1000 Hz is the preferred choice for desktop systems and other"
+plain "systems requiring fast interactive responses to events."
+plain ""
+read -rp "`echo $' > 1.100\n > 2.250\n > 3.300\n > 4.750\n > 5.1000\n > Default (1000)\nchoice[1-6]: '`" _timer_freq
+if [[ "$_timer_freq" = "1" ]]; then
+ msg2 "Set timer frequency to 100HZ"
+ scripts/config --enable CONFIG_HZ_100
+ scripts/config --set-val CONFIG_HZ 100
+elif [[ "$_timer_freq" = "2" ]]; then
+ msg2 "Set timer frequency to 250HZ"
+ scripts/config --enable CONFIG_HZ_250
+ scripts/config --set-val CONFIG_HZ 250
+elif [[ "$_timer_freq" = "3" ]]; then
+ msg2 "Set timer frequency to 300HZ"
+ scripts/config --enable CONFIG_HZ_300
+ scripts/config --set-val CONFIG_HZ 300
+elif [[ "$_timer_freq" = "4" ]]; then
+ msg2 "Set timer frequency to 750HZ"
+ scripts/config --enable CONFIG_HZ_750
+ scripts/config --set-val CONFIG_HZ 750
+elif [[ "$_timer_freq" = "5" ]]; then
+ msg2 "Set timer frequency to 1000HZ"
+ scripts/config --enable CONFIG_HZ_1000
+ scripts/config --set-val CONFIG_HZ 1000
+else
+ msg2 "Set timer frequency to 1000HZ"
+ scripts/config --enable CONFIG_HZ_1000
+ scripts/config --set-val CONFIG_HZ 1000
+fi
+
+sleep 2
+ plain ""
+ plain "#########################################"
+ plain "Use CattaRappa mode (Tickless/Dynticks) ?"
+ plain "Can give higher performances in many cases but lower consistency on"
+ plain "some hardware."
+ plain "Just tickless idle can perform better with some platforms (mostly AMD)"
+ plain "or CPU schedulers (mostly MuQSS)."
+ plain ""
+ read -rp "`echo $' > 1.Periodic ticks\n > 2.Full tickless\n > 3.Tickless idle\n > Default (Full tickless)\nchoice[1-3]: '`" _tick
+ if [[ "$_tick" = "1" ]]; then
+ msg2 "Set to periodic ticks"
+ scripts/config --enable CONFIG_HZ_PERIODIC
+ scripts/config --disable CONFIG_NO_HZ_IDLE
+ scripts/config --disable CONFIG_NO_HZ_FULL
+ scripts/config --disable CONFIG_NO_HZ
+ scripts/config --disable CONFIG_NO_HZ_COMMON
+ elif [[ "$_tick" = "2" ]]; then
+ msg2 "Set to full tickless"
+ scripts/config --disable CONFIG_HZ_PERIODIC
+ scripts/config --disable CONFIG_NO_HZ_IDLE
+ scripts/config --enable CONFIG_NO_HZ_FULL
+ scripts/config --enable CONFIG_NO_HZ
+ scripts/config --enable CONFIG_NO_HZ_COMMON
+ #scripts/config --enable CONFIG_CONTEXT_TRACKING
+ #scripts/config --disable CONFIG_CONTEXT_TRACKING_FORCE
+ elif [[ "$_tick" = "3" ]]; then
+ msg2 "Set to tickless idle"
+ scripts/config --disable CONFIG_HZ_PERIODIC
+ scripts/config --enable CONFIG_NO_HZ_IDLE
+ scripts/config --disable CONFIG_NO_HZ_FULL
+ scripts/config --enable CONFIG_NO_HZ
+ scripts/config --enable CONFIG_NO_HZ_COMMON
+ else
+ msg2 "Set to full tickless"
+ scripts/config --disable CONFIG_HZ_PERIODIC
+ scripts/config --disable CONFIG_NO_HZ_IDLE
+ scripts/config --enable CONFIG_NO_HZ_FULL
+ scripts/config --enable CONFIG_NO_HZ
+ scripts/config --enable CONFIG_NO_HZ_COMMON
+ #scripts/config --enable CONFIG_CONTEXT_TRACKING
+ #scripts/config --disable CONFIG_CONTEXT_TRACKING_FORCE
+ fi
+
+ sleep 2s
+
+ plain ""
+ plain "#########################################"
+ plain "Enable CONFIG_ZENIFY a selection of patches from Zen/Liquorix kernel"
+ plain "and additional tweaks for a better gaming experience (ZENIFY)"
+ plain ""
+ plain "Tunes the kernel for responsiveness at the cost of throughput and power usage."
+ #plain ""
+ #plain " --- Virtual Memory Subsystem ---------------------------"
+ #plain ""
+ #plain " Mem dirty before bg writeback..: 10 % -> 20 %"
+ #plain " Mem dirty before sync writeback: 20 % -> 50 %"
+ #plain ""
+ #plain " --- Block Layer ----------------------------------------"
+ #plain ""
+ #plain " Queue depth...............: 128 -> 512"
+ #plain " Default MQ scheduler......: mq-deadline -> bfq"
+ #plain ""
+ #plain " --- CFS CPU Scheduler ----------------------------------"
+ #plain ""
+ #plain " Scheduling latency.............: 6 -> 3 ms"
+ #plain " Minimal granularity............: 0.75 -> 0.3 ms"
+ #plain " Wakeup granularity.............: 1 -> 0.5 ms"
+ #plain " CPU migration cost.............: 0.5 -> 0.25 ms"
+ #plain " Bandwidth slice size...........: 5 -> 3 ms"
+ #plain " Ondemand fine upscaling limit..: 95 % -> 85 %"
+ #plain ""
+ #plain " --- MuQSS CPU Scheduler --------------------------------"
+ #plain ""
+ #plain " Scheduling interval............: 6 -> 3 ms"
+ #plain " ISO task max realtime use......: 70 % -> 25 %"
+ #plain " Ondemand coarse upscaling limit: 80 % -> 45 %"
+ #plain " Ondemand fine upscaling limit..: 95 % -> 45 %"
+ #plain ""
+ read -rp "`echo $' > 1.Yes\n > 2.No\n > Default (Yes)\nchoice[1-2]: '`" _zenify
+ if [[ "$_zenify" = "1" ]]; then
+ msg2 "Enable CONFIG_ZENIFY"
+ scripts/config --enable CONFIG_ZENIFY
+ elif [[ "$_zenify" = "2" ]]; then
+ msg2 "Disable CONFIG_ZENIFY"
+ scripts/config --disable CONFIG_ZENIFY
+ else
+ msg2 "Enable CONFIG_ZENIFY"
+ scripts/config --enable CONFIG_ZENIFY
+ fi
+
+ sleep 2s
+ plain ""
+ plain "#########################################"
+ plain "Apply suggested config by Hamad Al Marri"
+ read -rp "`echo $' > 1.Yes\n > 2.No\n > Default (No)\nchoice[1-2]: '`" _suggest_cacule
+ if [[ $_suggest_cacule = "1" ]]; then
+ msg2 "Apply suggested config"
+ msg2 "Security Cacule"
+ scripts/config --disable CONFIG_SECURITY
+ scripts/config --disable CONFIG_HARDENED_USERCOPY
+ msg2 "General Setup Cacule"
+ scripts/config --disable CONFIG_EXPERT
+ scripts/config --disable CONFIG_BSD_PROCESS_ACCT
+ scripts/config --disable CONFIG_TASK_XACCT
+ scripts/config --disable CONFIG_PSI
+ scripts/config --disable CONFIG_AUDIT
+ scripts/config --disable CONFIG_VIRT_CPU_ACCOUNTING_GEN
+ scripts/config --enable CONFIG_TICK_CPU_ACCOUNTING
+ scripts/config --disable CONFIG_CGROUP_CPUACCT
+ scripts/config --disable CONFIG_CGROUP_DEBUG
+ scripts/config --disable CONFIG_CHECKPOINT_RESTORE
+ scripts/config --disable CONFIG_SLAB_MERGE_DEFAULT
+ scripts/config --disable CONFIG_SLAB_FREELIST_HARDENED
+ scripts/config --disable CONFIG_SLUB_CPU_PARTIAL
+ scripts/config --disable CONFIG_PROFILING
+ msg2 "Processor type and features Cacule"
+ scripts/config --disable CONFIG_RETPOLINE
+ scripts/config --disable CONFIG_X86_5LEVEL
+ scripts/config --disable CONFIG_KEXEC
+ scripts/config --disable CONFIG_KEXEC_FILE
+ scripts/config --disable CONFIG_CRASH_DUMP
+ #scripts/config --set-val CONFIG_NR_CPUS "12"
+ msg2 "Power Cacule"
+ scripts/config --enable CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE
+ scripts/config --enable CONFIG_CPU_FREQ_GOV_PERFORMANCE
+ scripts/config --disable CONFIG_CPU_FREQ_GOV_ONDEMAND
+ msg2 "General architecture-dependent options Cacule"
+ scripts/config --disable CONFIG_KPROBES
+ scripts/config --disable CONFIG_STACKPROTECTOR
+ scripts/config --disable CONFIG_VMAP_STACK
+ msg2 "Kernel hacking Cacule"
+ scripts/config --disable CONFIG_FTRACE
+ scripts/config --disable CONFIG_DEBUG_KERNEL
+ scripts/config --disable CONFIG_PAGE_EXTENSION
+ scripts/config --disable CONFIG_PRINTK_TIME
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --set-val CONFIG_RCU_CPU_STALL_TIMEOUT 4
+ scripts/config --disable CONFIG_ENABLE_MUST_CHECK
+ scripts/config --disable CONFIG_STRIP_ASM_SYMS
+ scripts/config --disable CONFIG_UNUSED_SYMBOLS
+ scripts/config --disable CONFIG_DEBUG_FS
+ scripts/config --disable CONFIG_OPTIMIZE_INLINING
+ scripts/config --disable CONFIG_DEBUG_SECTION_MISMATCH
+ scripts/config --disable CONFIG_SECTION_MISMATCH_WARN_ONLY
+ scripts/config --disable CONFIG_STACK_VALIDATION
+ scripts/config --disable CONFIG_DEBUG_FORCE_WEAK_PER_CPU
+ scripts/config --disable CONFIG_MAGIC_SYSRQ
+ scripts/config --disable CONFIG_MAGIC_SYSRQ_SERIAL
+ scripts/config --disable CONFIG_PAGE_EXTENSION
+ scripts/config --disable CONFIG_DEBUG_PAGEALLOC
+ scripts/config --disable CONFIG_PAGE_OWNER
+ scripts/config --disable CONFIG_DEBUG_MEMORY_INIT
+ scripts/config --disable CONFIG_HARDLOCKUP_DETECTOR
+ scripts/config --disable CONFIG_SOFTLOCKUP_DETECTOR
+ scripts/config --disable CONFIG_DETECT_HUNG_TASK
+ scripts/config --disable CONFIG_WQ_WATCHDOG
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_SCHEDSTATS
+ scripts/config --set-val CONFIG_PANIC_TIMEOUT 10
+ scripts/config --disable CONFIG_SCHED_STACK_END_CHECK
+ scripts/config --disable CONFIG_DEBUG_BUGVERBOSE
+ scripts/config --disable CONFIG_RCU_TRACE
+ scripts/config --set-val CONFIG_RCU_CPU_STALL_TIMEOUT 4
+ scripts/config --disable CONFIG_FAULT_INJECTION
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_PROVIDE_OHCI1394_DMA_INIT
+ scripts/config --disable RUNTIME_TESTING_MENU
+ scripts/config --disable CONFIG_MEMTEST
+ scripts/config --disable CONFIG_KGDB
+ scripts/config --disable CONFIG_EARLY_PRINTK
+ scripts/config --disable CONFIG_DOUBLEFAULT
+ elif [[ $_suggest_cacule = "2" ]]; then
+ msg2 "Skip suggested config"
+ else
+ msg2 "Skip suggested config"
+ fi
}
cpu_arch(){
plain ""