Bring over r4402 from hwloc trunk.
This commit was SVN r26165. The following SVN revisions from the original message are invalid or inconsistent and therefore were not cross-referenced: r4402
Этот коммит содержится в:
родитель
a40b6dcc42
Коммит
0322db7cde
@ -208,11 +208,12 @@ static void look_proc(struct procinfo *infos, unsigned highest_cpuid, unsigned h
|
||||
|
||||
cache->linesize = linesize = (ebx & 0xfff) + 1;
|
||||
cache->linepart = linepart = ((ebx >> 12) & 0x3ff) + 1;
|
||||
ways = ((ebx >> 22) & 0x3ff) + 1;
|
||||
if (eax & (1 << 9))
|
||||
/* Fully associative */
|
||||
cache->ways = -1;
|
||||
else
|
||||
cache->ways = ways = ((ebx >> 22) & 0x3ff) + 1;
|
||||
cache->ways = ways;
|
||||
cache->sets = sets = ecx + 1;
|
||||
cache->size = linesize * linepart * ways * sets;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user