On AMD's Geode LX: Force the TSC to run through core-suspension so we can

use it as a timecounter.

Sponsored by: Soekris Engineering
This commit is contained in:
Poul-Henning Kamp 2007-04-18 10:08:24 +00:00
parent 3f863a9ae4
commit cc76e59ded

View File

@ -386,6 +386,14 @@ printcpuinfo(void)
case 0x590:
strcat(cpu_model, "K6-III");
break;
case 0x5a0:
strcat(cpu_model, "Geode LX");
/*
* Make sure the TSC runs through suspension,
* otherwise we can't use it as timecounter
*/
wrmsr(0x1900, rdmsr(0x1900) | 0x20ULL);
break;
default:
strcat(cpu_model, "Unknown");
break;