On Tue, Sep 19, 2017 at 22:35 +0200, Mike Belopuhov wrote: > Keeping all of what Reyk said in mind, here's an updated diff that > incorporates additional changes: > > 1) doesn't break i386 kernel compilation; > > 2) allows for multiple recalibrations using better timecounter > sources since acpihpet (and maybe acpitimer) can be attached both > before and after cpu0; > > 3) factors out the TSC timecounter code into a separate file so > that it's clear what's related to the timecounter code and what's > not as I didn't quite like pollution of ACPI bits with unrelated > stuff; > > 4) cuts down on global variables and provides additional cleanup. > > Same diff as in here: https://github.com/mbelop/src/tree/tsc > > Does this look good to everybody? > acpitimer and acpihpet parts look a tiny bit gross I guess but > on overall the tsc.c can be copied to i386 and these ifdefs > extended to include it. >
Forgot to mention. Since this removes the useless ci_tsc_freq struct cpu_info member, a "make config" is required to update cpu_info member offsets table. Not doing "make clean" at the same time is on your conscience.