| From 23f8c12d74513a8d58c2b1f1479434c7de92afe1 Mon Sep 17 00:00:00 2001 |
| From: Aashish Sharma <shraash@google.com> |
| Date: Sun, 15 Jan 2023 13:10:59 +0530 |
| Subject: [PATCH] FIXUP: FROMLIST: sched: Add a coresched command line option |
| |
| 0-day warning: |
| |
| >> arch/x86/kernel/cpu/bugs.c:51:20: warning: 'coresched_select' used |
| but never defined |
| |
| Move function 'coresched_select' out of CONFIG_SYSFS conditional |
| block. |
| |
| BUG=b:196543180,b:227610040 |
| TEST=build chromeos-kernelupstream-5.14-rc5 with debug and boot |
| x86_64 without cross-HT MDS/L1TF issues |
| (cat /sys/devices/system/cpu/vulnerabilities/mds and |
| cat /sys/devices/system/cpu/vulnerabilities/l1tf) |
| |
| Change-Id: I24c961b9e093f22134f10d75ee7c717aa12d25af |
| Signed-off-by: Aashish Sharma <shraash@google.com> |
| Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/4166884 |
| Reviewed-by: Guenter Roeck <groeck@chromium.org> |
| Commit-Queue: Guenter Roeck <groeck@chromium.org> |
| Tested-by: Guenter Roeck <groeck@chromium.org> |
| --- |
| arch/x86/kernel/cpu/bugs.c | 3 +-- |
| 1 file changed, 1 insertion(+), 2 deletions(-) |
| |
| diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c |
| index f07856220d4a1ab4570d35f777e93d329340c49d..3b90989e9b6be2cf1861bea0c7ccd2b01c0aae3f 100644 |
| --- a/arch/x86/kernel/cpu/bugs.c |
| +++ b/arch/x86/kernel/cpu/bugs.c |
| @@ -2858,6 +2858,7 @@ ssize_t cpu_show_gds(struct device *dev, struct device_attribute *attr, char *bu |
| { |
| return cpu_show_common(dev, attr, buf, X86_BUG_GDS); |
| } |
| +#endif |
| |
| /* |
| * When coresched=secure command line option is passed (default), disable core |
| @@ -2872,5 +2873,3 @@ static void __init coresched_select(void) |
| static_branch_disable(&sched_coresched_supported); |
| #endif |
| } |
| - |
| -#endif |
| -- |
| 2.34.1 |
| |