diff options
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/file2alias.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index a468af059834..78fd81fb9732 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1021,8 +1021,9 @@ static int do_x86cpu_entry(const char *filename, struct x86_cpu_id *id, | |||
1021 | ADD(alias, "vendor:", id->vendor != X86_VENDOR_ANY, id->vendor); | 1021 | ADD(alias, "vendor:", id->vendor != X86_VENDOR_ANY, id->vendor); |
1022 | ADD(alias, ":family:", id->family != X86_FAMILY_ANY, id->family); | 1022 | ADD(alias, ":family:", id->family != X86_FAMILY_ANY, id->family); |
1023 | ADD(alias, ":model:", id->model != X86_MODEL_ANY, id->model); | 1023 | ADD(alias, ":model:", id->model != X86_MODEL_ANY, id->model); |
1024 | ADD(alias, ":feature:*,", id->feature != X86_FEATURE_ANY, id->feature); | 1024 | strcat(alias, ":feature:*"); |
1025 | strcat(alias, ",*"); | 1025 | if (id->feature != X86_FEATURE_ANY) |
1026 | sprintf(alias + strlen(alias), "%04X*", id->feature); | ||
1026 | return 1; | 1027 | return 1; |
1027 | } | 1028 | } |
1028 | ADD_TO_DEVTABLE("x86cpu", struct x86_cpu_id, do_x86cpu_entry); | 1029 | ADD_TO_DEVTABLE("x86cpu", struct x86_cpu_id, do_x86cpu_entry); |