From 385626059b6bf6104366e68b9c0c7c82ad52e117 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 18 Jul 2022 12:30:29 +0800 Subject: [PATCH] untrack more unused patches --- 0127-nvme-workaround.patch | 25 ------------ ...error-if-PowerClamp-run-on-other-CPU.patch | 40 ------------------- 2 files changed, 65 deletions(-) delete mode 100644 0127-nvme-workaround.patch delete mode 100644 0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch diff --git a/0127-nvme-workaround.patch b/0127-nvme-workaround.patch deleted file mode 100644 index b897889..0000000 --- a/0127-nvme-workaround.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Arjan van de Ven -Date: Mon, 11 Nov 2019 23:12:11 +0000 -Subject: [PATCH] nvme workaround - ---- - drivers/nvme/host/core.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c -index a13eec2fca5a..a53b2968370c 100644 ---- a/drivers/nvme/host/core.c -+++ b/drivers/nvme/host/core.c -@@ -48,7 +48,7 @@ static u8 nvme_max_retries = 5; - module_param_named(max_retries, nvme_max_retries, byte, 0644); - MODULE_PARM_DESC(max_retries, "max number of retries a command may have"); - --static unsigned long default_ps_max_latency_us = 100000; -+static unsigned long default_ps_max_latency_us = 200; - module_param(default_ps_max_latency_us, ulong, 0644); - MODULE_PARM_DESC(default_ps_max_latency_us, - "max power saving latency for new devices; use PM QOS to change per device"); --- -https://clearlinux.org - diff --git a/0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch b/0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch deleted file mode 100644 index 2f0e828..0000000 --- a/0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Alexander Koskovich -Date: Wed, 12 Feb 2020 22:47:12 +0000 -Subject: [PATCH] don't report an error if PowerClamp run on other CPU - ---- - drivers/thermal/intel/intel_powerclamp.c | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c -index b0eb5ece9243..5dc056d31c36 100644 ---- a/drivers/thermal/intel/intel_powerclamp.c -+++ b/drivers/thermal/intel/intel_powerclamp.c -@@ -647,6 +647,11 @@ static struct thermal_cooling_device_ops powerclamp_cooling_ops = { - .set_cur_state = powerclamp_set_cur_state, - }; - -+static const struct x86_cpu_id amd_cpu[] = { -+ { X86_VENDOR_AMD }, -+ {}, -+}; -+ - static const struct x86_cpu_id __initconst intel_powerclamp_ids[] = { - X86_MATCH_VENDOR_FEATURE(INTEL, X86_FEATURE_MWAIT, NULL), - {} -@@ -656,6 +661,11 @@ MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids); - static int __init powerclamp_probe(void) - { - -+ if (x86_match_cpu(amd_cpu)){ -+ pr_info("Intel PowerClamp does not support AMD CPUs\n"); -+ return -ENODEV; -+ } -+ - if (!x86_match_cpu(intel_powerclamp_ids)) { - pr_err("CPU does not support MWAIT\n"); - return -ENODEV; --- -https://clearlinux.org - -- 2.45.2