ref: fa98fbb13c368040db238eb218ed844d53642a12
parent: e4562fa250aa010e1cab060acbe52da62454e9ce
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Jan 13 13:09:35 EST 2021
plan9: fix a warning on 386
--- a/plan9.c
+++ b/plan9.c
@@ -502,15 +502,16 @@
return nsec() - xstart;
if(fasthz == 0){
- if((fasthz = _tos->cyclefreq) == 0){
+ fasthz = _tos->cyclefreq;
+ if(fasthz == 0){
fasthz = ~0ULL;
xstart = nsec();
fprint(2, "cyclefreq not available, falling back to nsec()\n");
fprint(2, "you might want to disable aux/timesync\n");
return 0;
- }else{
- cycles(&xstart);
}
+ cycles(&xstart);
+ return 0;
}
cycles(&x);
x -= xstart;