函数源码 |
Source File:arch\x86\kernel\smpboot.c |
Create Date:2022-07-27 09:24:13 |
首页 | Copyright©Brick |
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | static bool match_llc( struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) { int cpu1 = c->cpu_index, cpu2 = o->cpu_index; /* Do not match if we do not have a valid APICID for cpu: */ if (per_cpu(cpu_llc_id, cpu1) == BAD_APICID) return false ; /* Do not match if LLC id does not match: */ if (per_cpu(cpu_llc_id, cpu1) != per_cpu(cpu_llc_id, cpu2)) return false ; /* * Allow the SNC topology without warning. Return of false * means 'c' does not share the LLC of 'o'. This will be * reflected to userspace. */ if (!topology_same_node(c, o) && x86_match_cpu(snc_cpu)) return false ; return topology_sane(c, o, "llc" ); } |