函数源码 |
Source File:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-27 09:09:20 |
首页 | Copyright©Brick |
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | static int collect_cpu_info_amd( int cpu, struct cpu_signature *csig) { struct cpuinfo_x86 *c = &cpu_data(cpu); struct ucode_cpu_info *uci = ucode_cpu_info + cpu; struct ucode_patch *p; csig->sig = cpuid_eax(0x00000001); csig->rev = c->microcode; /* * a patch could have been loaded early, set uci->mc so that * mc_bp_resume() can call apply_microcode() */ p = find_patch(cpu); if (p && (p->patch_id == csig->rev)) uci->mc = p->data; pr_info( "CPU%d: patch_level=0x%08x\n" , cpu, csig->rev); return 0; } |