From 777260b609e32cab0e90c9e70b7fe4e0e399a054 Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Thu, 27 Jun 2024 20:09:51 -0400 Subject: [PATCH] qualcommax: Fix threaded NAPI scheduling Revert to using the default kernel timer (CONFIG_HZ_100). Setting the timer to 1000hz is unecessary and just adds CPU overhead. It also causes atomic scheduling issues in various threaded tasks, especially when using threaded NAPI. When the kernel timer frequency is set to 1000 Hz, it generates interrupts 1000 times per second. This increased frequency can lead to more frequent context switches and interrupt handling, which can interfere with other kernel activities. Since network packet processing is offloaded to the NSS cores, the main CPU does not need high-resolution timer interrupts to manage network traffic efficiently. The NSS cores handle this independently. This is the setting used and recommended by Qualcomm for all their IPQ platforms. Signed-off-by: Sean Khan --- target/linux/qualcommax/config-6.6 | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/linux/qualcommax/config-6.6 b/target/linux/qualcommax/config-6.6 index 8ad793869a..4b8b902273 100644 --- a/target/linux/qualcommax/config-6.6 +++ b/target/linux/qualcommax/config-6.6 @@ -198,9 +198,6 @@ CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_MSM=y -CONFIG_HZ=1000 -# CONFIG_HZ_100 is not set -CONFIG_HZ_1000=y CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y