Conflicts: modified: arch/arm64/configs/redbull_defconfig modified: arch/arm64/configs/vendor/kona_defconfig modified: arch/arm64/configs/vendor/lito_defconfig modified: arch/arm64/include/asm/traps.h modified: arch/arm64/kernel/smp.c modified: arch/arm64/mm/dma-mapping.c modified: arch/arm64/mm/fault.c modified: drivers/android/binder.c modified: drivers/base/power/wakeup.c modified: drivers/bus/mhi/core/mhi_main.c modified: drivers/clk/clk.c modified: drivers/clocksource/arm_arch_timer.c modified: drivers/cpuidle/lpm-levels.c modified: drivers/crypto/msm/qcedev.c modified: drivers/devfreq/governor_memlat_trace.h modified: drivers/dma-buf/dma-buf.c modified: drivers/gpu/Makefile modified: drivers/gpu/drm/drm_dp_mst_topology.c modified: drivers/gpu/drm/drm_edid.c modified: drivers/gpu/msm/Kconfig modified: drivers/gpu/msm/kgsl.c modified: drivers/gpu/msm/kgsl_sharedmem.c modified: drivers/hwtracing/coresight/coresight-etm-perf.c modified: drivers/hwtracing/coresight/coresight-tmc-etr.c modified: drivers/iommu/arm-smmu.c modified: drivers/iommu/io-pgtable-arm.c modified: drivers/iommu/io-pgtable-fast.c modified: drivers/iommu/io-pgtable.c modified: drivers/iommu/iommu.c modified: drivers/leds/leds-qpnp-flash-v2.c modified: drivers/misc/Kconfig modified: drivers/misc/qseecom.c modified: drivers/mmc/core/Kconfig modified: drivers/mmc/core/block.c modified: drivers/mmc/host/cqhci-crypto-qti.c modified: drivers/mmc/host/cqhci-crypto.c modified: drivers/mmc/host/cqhci.c modified: drivers/mmc/host/sdhci-msm.c modified: drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c modified: drivers/net/wireless/ath/wil6210/interrupt.c modified: drivers/net/wireless/ath/wil6210/wmi.c modified: drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c modified: drivers/power/supply/power_supply_sysfs.c modified: drivers/power/supply/qcom/Kconfig modified: drivers/power/supply/qcom/Makefile modified: drivers/power/supply/qcom/qg-core.h modified: drivers/power/supply/qcom/qpnp-qg.c modified: drivers/power/supply/qcom/qpnp-smb5.c modified: drivers/power/supply/qcom/smb5-lib.c modified: drivers/power/supply/qcom/smb5-lib.h modified: drivers/regulator/core.c modified: drivers/regulator/proxy-consumer.c modified: drivers/scsi/ufs/ufs_quirks.h modified: drivers/scsi/ufs/ufshcd.c modified: drivers/soc/qcom/icnss.c modified: drivers/soc/qcom/minidump_log.c modified: drivers/soc/qcom/watchdog_v2.c modified: drivers/spi/spi-geni-qcom.c modified: drivers/staging/android/ion/Makefile modified: drivers/staging/android/ion/ion.c modified: drivers/thermal/cpu_cooling.c modified: drivers/thermal/of-thermal.c modified: drivers/thermal/thermal_core.c modified: drivers/tty/serial/Kconfig modified: drivers/tty/serial/Makefile modified: drivers/tty/serial/msm_geni_serial.c modified: drivers/usb/core/usb.c modified: drivers/usb/dwc3/gadget.c modified: drivers/usb/dwc3/gadget.h modified: drivers/usb/gadget/composite.c modified: drivers/usb/gadget/epautoconf.c modified: drivers/usb/gadget/udc/core.c modified: drivers/usb/host/xhci.c modified: fs/crypto/crypto.c modified: fs/crypto/keysetup.c modified: fs/crypto/keysetup_v1.c modified: fs/f2fs/checkpoint.c modified: fs/f2fs/data.c modified: fs/f2fs/f2fs.h modified: fs/f2fs/node.c modified: fs/incfs/Kconfig modified: fs/incfs/data_mgmt.c modified: fs/incfs/data_mgmt.h modified: fs/incfs/vfs.c modified: fs/proc/task_mmu.c modified: include/drm/drm_connector.h modified: include/drm/drm_dp_mst_helper.h modified: include/linux/clk-provider.h modified: include/linux/dma-buf.h modified: include/linux/dma-mapping.h modified: include/linux/fs.h modified: include/linux/io-pgtable.h modified: include/linux/iommu.h modified: include/linux/mm.h modified: include/linux/mm_types.h modified: include/linux/mmc/host.h modified: include/linux/mmzone.h modified: include/linux/perf_event.h modified: include/linux/power_supply.h modified: include/linux/pwm.h modified: include/linux/regulator/driver.h modified: include/linux/rwsem.h modified: include/linux/sched.h modified: include/linux/sched/signal.h modified: include/linux/sched/sysctl.h modified: include/linux/sched/topology.h modified: include/linux/sched/user.h modified: include/linux/thermal.h modified: include/linux/usb.h modified: include/linux/usb/gadget.h modified: include/linux/usb/hcd.h modified: include/linux/vm_event_item.h modified: include/net/cfg80211.h modified: include/scsi/scsi_device.h modified: include/soc/qcom/minidump.h modified: include/soc/qcom/qmi_rmnet.h modified: include/soc/qcom/socinfo.h modified: include/trace/events/power.h modified: include/uapi/drm/drm_mode.h modified: include/uapi/linux/coresight-stm.h modified: include/uapi/linux/ip.h modified: include/uapi/linux/nl80211.h modified: include/uapi/linux/videodev2.h modified: kernel/dma/mapping.c modified: kernel/dma/removed.c modified: kernel/panic.c modified: kernel/sched/cpupri.c modified: kernel/sched/cpupri.h modified: kernel/sched/fair.c modified: kernel/sched/rt.c modified: kernel/sched/sched.h modified: kernel/sched/walt.h modified: kernel/sysctl.c modified: mm/Kconfig modified: mm/compaction.c modified: mm/oom_kill.c modified: mm/page_alloc.c modified: mm/vmalloc.c modified: mm/vmscan.c modified: net/qrtr/qrtr.c modified: net/wireless/nl80211.c modified: net/wireless/scan.c modified: sound/core/init.c modified: sound/soc/soc-core.c modified: sound/usb/card.c modified: sound/usb/pcm.c modified: sound/usb/pcm.h modified: sound/usb/usbaudio.h Bug: 172988823 Bug: 173092548 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I9c86e3a0309b7078e7640788c00172c6e9b4cf67
177 lines
6.1 KiB
C
177 lines
6.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_SCHED_SYSCTL_H
|
|
#define _LINUX_SCHED_SYSCTL_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ctl_table;
|
|
|
|
#ifdef CONFIG_DETECT_HUNG_TASK
|
|
extern int sysctl_hung_task_check_count;
|
|
extern unsigned int sysctl_hung_task_panic;
|
|
extern unsigned long sysctl_hung_task_timeout_secs;
|
|
extern unsigned long sysctl_hung_task_check_interval_secs;
|
|
extern int sysctl_hung_task_warnings;
|
|
extern int sysctl_hung_task_selective_monitoring;
|
|
extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
|
|
void __user *buffer,
|
|
size_t *lenp, loff_t *ppos);
|
|
#else
|
|
/* Avoid need for ifdefs elsewhere in the code */
|
|
enum { sysctl_hung_task_timeout_secs = 0 };
|
|
#endif
|
|
|
|
#define MAX_CLUSTERS 3
|
|
/* MAX_MARGIN_LEVELS should be one less than MAX_CLUSTERS */
|
|
#define MAX_MARGIN_LEVELS (MAX_CLUSTERS - 1)
|
|
|
|
extern unsigned int sysctl_sched_latency;
|
|
extern unsigned int sysctl_sched_min_granularity;
|
|
extern unsigned int sysctl_sched_sync_hint_enable;
|
|
extern unsigned int sysctl_sched_cstate_aware;
|
|
extern unsigned int sysctl_sched_wakeup_granularity;
|
|
extern unsigned int sysctl_sched_child_runs_first;
|
|
#ifdef CONFIG_SCHED_WALT
|
|
extern unsigned int sysctl_sched_force_lb_enable;
|
|
extern unsigned int sysctl_sched_capacity_margin_up[MAX_MARGIN_LEVELS];
|
|
extern unsigned int sysctl_sched_capacity_margin_down[MAX_MARGIN_LEVELS];
|
|
extern unsigned int sysctl_sched_user_hint;
|
|
extern const int sched_user_hint_max;
|
|
extern unsigned int sysctl_sched_cpu_high_irqload;
|
|
extern unsigned int sysctl_sched_boost;
|
|
extern unsigned int sysctl_sched_group_upmigrate_pct;
|
|
extern unsigned int sysctl_sched_group_downmigrate_pct;
|
|
extern unsigned int sysctl_sched_conservative_pl;
|
|
extern unsigned int sysctl_sched_many_wakeup_threshold;
|
|
extern unsigned int sysctl_sched_walt_rotate_big_tasks;
|
|
extern unsigned int sysctl_sched_min_task_util_for_boost;
|
|
extern unsigned int sysctl_sched_min_task_util_for_colocation;
|
|
extern unsigned int sysctl_sched_asym_cap_sibling_freq_match_pct;
|
|
extern unsigned int sysctl_sched_coloc_downmigrate_ns;
|
|
extern unsigned int sysctl_sched_task_unfilter_period;
|
|
extern unsigned int sysctl_sched_busy_hyst_enable_cpus;
|
|
extern unsigned int sysctl_sched_busy_hyst;
|
|
extern unsigned int sysctl_sched_coloc_busy_hyst_enable_cpus;
|
|
extern unsigned int sysctl_sched_coloc_busy_hyst;
|
|
extern unsigned int sysctl_sched_coloc_busy_hyst_max_ms;
|
|
extern unsigned int sysctl_sched_window_stats_policy;
|
|
extern unsigned int sysctl_sched_ravg_window_nr_ticks;
|
|
extern unsigned int sysctl_sched_dynamic_ravg_window_enable;
|
|
extern unsigned int sysctl_sched_prefer_spread;
|
|
extern unsigned int sysctl_walt_rtg_cfs_boost_prio;
|
|
extern unsigned int sysctl_walt_low_latency_task_threshold;
|
|
|
|
extern int
|
|
walt_proc_group_thresholds_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
extern int
|
|
walt_proc_user_hint_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
extern int
|
|
sched_ravg_window_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
extern int sched_updown_migrate_handler(struct ctl_table *table,
|
|
int write, void __user *buffer,
|
|
size_t *lenp, loff_t *ppos);
|
|
#endif
|
|
|
|
#if defined(CONFIG_PREEMPTIRQ_EVENTS) || defined(CONFIG_PREEMPT_TRACER)
|
|
extern unsigned int sysctl_preemptoff_tracing_threshold_ns;
|
|
#endif
|
|
#if defined(CONFIG_PREEMPTIRQ_EVENTS) && defined(CONFIG_IRQSOFF_TRACER)
|
|
extern unsigned int sysctl_irqsoff_tracing_threshold_ns;
|
|
#endif
|
|
|
|
enum sched_tunable_scaling {
|
|
SCHED_TUNABLESCALING_NONE,
|
|
SCHED_TUNABLESCALING_LOG,
|
|
SCHED_TUNABLESCALING_LINEAR,
|
|
SCHED_TUNABLESCALING_END,
|
|
};
|
|
extern enum sched_tunable_scaling sysctl_sched_tunable_scaling;
|
|
|
|
extern unsigned int sysctl_numa_balancing_scan_delay;
|
|
extern unsigned int sysctl_numa_balancing_scan_period_min;
|
|
extern unsigned int sysctl_numa_balancing_scan_period_max;
|
|
extern unsigned int sysctl_numa_balancing_scan_size;
|
|
|
|
#ifdef CONFIG_SCHED_DEBUG
|
|
extern __read_mostly unsigned int sysctl_sched_migration_cost;
|
|
extern __read_mostly unsigned int sysctl_sched_nr_migrate;
|
|
|
|
int sched_proc_update_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *length,
|
|
loff_t *ppos);
|
|
#endif
|
|
|
|
extern int sched_boost_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp, loff_t *ppos);
|
|
/*
|
|
* control realtime throttling:
|
|
*
|
|
* /proc/sys/kernel/sched_rt_period_us
|
|
* /proc/sys/kernel/sched_rt_runtime_us
|
|
*/
|
|
extern unsigned int sysctl_sched_rt_period;
|
|
extern int sysctl_sched_rt_runtime;
|
|
|
|
#ifdef CONFIG_UCLAMP_TASK
|
|
extern unsigned int sysctl_sched_uclamp_util_min;
|
|
extern unsigned int sysctl_sched_uclamp_util_max;
|
|
#endif
|
|
|
|
#ifdef CONFIG_CFS_BANDWIDTH
|
|
extern unsigned int sysctl_sched_cfs_bandwidth_slice;
|
|
#endif
|
|
|
|
#ifdef CONFIG_SCHED_AUTOGROUP
|
|
extern unsigned int sysctl_sched_autogroup_enabled;
|
|
#endif
|
|
|
|
extern int sysctl_sched_rr_timeslice;
|
|
extern int sched_rr_timeslice;
|
|
|
|
extern int sched_rr_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
extern int sched_rt_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
#ifdef CONFIG_UCLAMP_TASK
|
|
extern int sysctl_sched_uclamp_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
#endif
|
|
|
|
extern int sysctl_numa_balancing(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
extern int sysctl_schedstats(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
|
|
#if defined(CONFIG_ENERGY_MODEL) && defined(CONFIG_CPU_FREQ_GOV_SCHEDUTIL)
|
|
extern unsigned int sysctl_sched_energy_aware;
|
|
extern int sched_energy_aware_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
#endif
|
|
|
|
#define LIB_PATH_LENGTH 512
|
|
extern char sched_lib_name[LIB_PATH_LENGTH];
|
|
extern unsigned int sched_lib_mask_force;
|
|
extern int sysctl_sched_lib_name_handler(struct ctl_table *table, int write,
|
|
void __user *buffer, size_t *lenp,
|
|
loff_t *ppos);
|
|
extern bool is_sched_lib_based_app(pid_t pid);
|
|
|
|
#endif /* _LINUX_SCHED_SYSCTL_H */
|