Files
build/patch/kernel/archive/odroidxu4-6.6/patch-6.6.097-098.patch
Rolf Leggewie 63986242b6 pad double digits in kernel patch names with a leading zero (#8520)
Affected kernels:
- odroidxu4-6.6
- spacemit-6.6

the following script gets it mostly (!) right

for patch in patch-6.6.*; do
    # Extract the numbers using parameter expansion
    num1=${patch:10:2}  # Get the first number (2 digits)
    num2=${patch:13:2}  # Get the second number (2 digits)

    # Pad the numbers with leading zeros
    padded_num1=$(printf "%03d" "$num1")
    padded_num2=$(printf "%03d" "$num2")

    # Construct the new patch name
    new_patch="patch-6.6.${padded_num1}-${padded_num2}.patch"

    # Rename the file using git mv
    git mv -v "$patch" "$new_patch"
done
2025-08-19 14:10:26 +02:00

26 lines
666 B
Diff

diff --git a/Makefile b/Makefile
index 9d5c08363637bd..0bb5c23c640616 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 6
-SUBLEVEL = 97
+SUBLEVEL = 98
EXTRAVERSION =
NAME = Pinguïn Aangedreven
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 1180689a239037..f6690df70b43ea 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -547,6 +547,7 @@ static bool amd_check_tsa_microcode(void)
p.ext_fam = c->x86 - 0xf;
p.model = c->x86_model;
+ p.ext_model = c->x86_model >> 4;
p.stepping = c->x86_stepping;
if (cpu_has(c, X86_FEATURE_ZEN3) ||