Fix a -Wuninitialized warning reported by rwatson.
Approved by: re (blanket hwpmc)
This commit is contained in:
parent
d098c2c166
commit
54bad7c6c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147510
@ -921,7 +921,8 @@ pmc_amd_initialize(void)
|
||||
* field returned by CPUID for instruction family >= 6.
|
||||
*/
|
||||
|
||||
cputype = -1;
|
||||
class = cputype = -1;
|
||||
name = NULL;
|
||||
switch (cpu_id & 0xF00) {
|
||||
case 0x600: /* Athlon(tm) processor */
|
||||
cputype = PMC_CPU_AMD_K7;
|
||||
|
Loading…
Reference in New Issue
Block a user