sys_timex: remove workaround for broken ntp_adjtime on macOS
Early beta releases of macOS Big Sur had a signed/unsigned error in Apple's implementation of ntp_adjtime. Apple have since fixed this error and the workaround is no longer required.
This commit is contained in:
parent
9a716cc284
commit
40d80624f6
1 changed files with 0 additions and 7 deletions
|
@ -75,13 +75,6 @@ convert_timex_frequency(const struct timex *txc)
|
||||||
|
|
||||||
freq_ppm = txc->freq / FREQ_SCALE;
|
freq_ppm = txc->freq / FREQ_SCALE;
|
||||||
|
|
||||||
#ifdef MACOSX
|
|
||||||
/* Temporary workaround for Apple bug treating freq as unsigned number */
|
|
||||||
if (freq_ppm > 32767) {
|
|
||||||
freq_ppm -= 65536;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return -freq_ppm;
|
return -freq_ppm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue