ref: d25363775dc632e060fbcb42e7792fa533bd4254
parent: 7b829752ebae8feb770f9793d82b250d35c9eac5
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Jun 25 16:32:43 EDT 2013
reintroduce *notsc= option the issues with the previous tsc change where not related to the tsc but where problems with timesync using an old frequency file. a patch to fix timesync was commited, so so we reintroduce the *notsc= again.
--- a/sys/man/8/plan9.ini
+++ b/sys/man/8/plan9.ini
@@ -730,6 +730,9 @@
Prints a summary of the multiprocessor APIC interrupt configuration.
.SS \fL*nomsi=\fP
Disables message signaled interrupts.
+.SS \fL*notsc=\fP
+Disables the use of the per processor timestamp counter registers
+as high resolution clock.
.SS \fL*pcimaxbno=value\fP
This puts a limit on the maximum bus number probed
on a PCI bus (default 7).
--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -519,7 +519,7 @@
return 1;
if((cp = getconf("*nomp")) != nil && strcmp(cp, "0") != 0)return 1;
- if(m->havetsc)
+ if(m->havetsc && getconf("*notsc") == nil)archacpi.fastclock = tscticks;
return 0;
}
--- a/sys/src/9/pc/archmp.c
+++ b/sys/src/9/pc/archmp.c
@@ -395,7 +395,7 @@
return 1;
}
- if(m->havetsc)
+ if(m->havetsc && getconf("*notsc") == nil)archmp.fastclock = tscticks;
return 0;
--
⑨