Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288875
b: refs/heads/master
c: 5467bdd
h: refs/heads/master
i:
  288873: 199afaf
  288871: 45a5046
v: v3
  • Loading branch information
Ben Hutchings authored and Greg Kroah-Hartman committed Feb 13, 2012
1 parent af74bb7 commit b3308e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70142a9dd154f54f7409871ead86f7d77f2c6576
refs/heads/master: 5467bdda4a326513c2f14b712a22d59115b7ae94
3 changes: 1 addition & 2 deletions trunk/arch/x86/kernel/cpu/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ssize_t arch_print_cpu_modalias(struct device *dev,
boot_cpu_data.x86_model);
size -= n;
buf += n;
size -= 2;
size -= 1;
for (i = 0; i < NCAPINTS*32; i++) {
if (boot_cpu_has(i)) {
n = snprintf(buf, size, ",%04X", i);
Expand All @@ -75,7 +75,6 @@ ssize_t arch_print_cpu_modalias(struct device *dev,
buf += n;
}
}
*buf++ = ',';
*buf++ = '\n';
return buf - bufptr;
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/scripts/mod/file2alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,9 @@ static int do_x86cpu_entry(const char *filename, struct x86_cpu_id *id,
ADD(alias, "vendor:", id->vendor != X86_VENDOR_ANY, id->vendor);
ADD(alias, ":family:", id->family != X86_FAMILY_ANY, id->family);
ADD(alias, ":model:", id->model != X86_MODEL_ANY, id->model);
ADD(alias, ":feature:*,", id->feature != X86_FEATURE_ANY, id->feature);
strcat(alias, ",*");
strcat(alias, ":feature:*");
if (id->feature != X86_FEATURE_ANY)
sprintf(alias + strlen(alias), "%04X*", id->feature);
return 1;
}
ADD_TO_DEVTABLE("x86cpu", struct x86_cpu_id, do_x86cpu_entry);
Expand Down

0 comments on commit b3308e4

Please sign in to comment.