msm-4.14: Disable some force-enabled debug options

This caused so much performance regressions in hackbench.

Change-Id: Ib72d4f4aca54ee00799809d4eb2fcb6cdb1f4971
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
darkhz 2020-07-06 14:17:29 +05:30 committed by Richard Raya
parent ac5ab411b5
commit 129663f2b0
5 changed files with 6 additions and 4 deletions

View File

@ -3008,8 +3008,10 @@ static void sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type)
init_completion(&msm_host->pwr_irq_completion);
else if (!wait_for_completion_timeout(&msm_host->pwr_irq_completion,
msecs_to_jiffies(MSM_PWR_IRQ_TIMEOUT_MS))) {
#ifdef CONFIG_BUG
__WARN_printf("%s: request(%d) timed out waiting for pwr_irq\n",
mmc_hostname(host->mmc), req_type);
#endif
MMC_TRACE(host->mmc,
"%s: request(%d) timed out waiting for pwr_irq\n",
__func__, req_type);

View File

@ -367,7 +367,9 @@ void msm_spm_drv_flush_seq_entry(struct msm_spm_driver_data *dev)
int num_spm_entry = msm_spm_drv_get_num_spm_entry(dev);
if (!dev) {
#ifdef CONFIG_BUG
__WARN();
#endif
return;
}

View File

@ -1485,7 +1485,6 @@ config PRINTK_NMI
config BUG
bool "BUG() support" if EXPERT
default y
help
Disabling this option eliminates support for BUG and WARN, reducing
the size of your kernel image and potentially quietly ignoring
@ -1749,7 +1748,6 @@ config VM_EVENT_COUNTERS
if VM event counters are disabled.
config SLUB_DEBUG
default y
bool "Enable SLUB debugging support" if EXPERT
depends on SLUB && SYSFS
help

View File

@ -2106,7 +2106,9 @@ static struct sched_cluster *alloc_new_cluster(const struct cpumask *cpus)
cluster = kzalloc(sizeof(struct sched_cluster), GFP_ATOMIC);
if (!cluster) {
#ifdef CONFIG_BUG
__WARN_printf("Cluster allocation failed. Possible bad scheduling\n");
#endif
return NULL;
}

View File

@ -1022,7 +1022,6 @@ config PANIC_TIMEOUT
config SCHED_DEBUG
bool "Collect scheduler debugging info"
depends on DEBUG_KERNEL && PROC_FS
default y
help
If you say Y here, the /proc/sched_debug file will be provided
that can help debug the scheduler. The runtime overhead of this
@ -1101,7 +1100,6 @@ config DEBUG_TASK_STACK_SCAN_OFF
config DEBUG_PREEMPT
bool "Debug preemptible kernel"
depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT
default y
help
If you say Y here then the kernel will use a debug variant of the
commonly used smp_processor_id() function and will print warnings