Return to tsc.c CVS log | Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86 |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.37, 2017/10/02 19:23:16 | version 1.38, 2020/02/21 00:26:22 | ||
---|---|---|---|
|
|
||
static void | static void | ||
tsc_apply_cpu(void *arg1, void *arg2) | tsc_apply_cpu(void *arg1, void *arg2) | ||
{ | { | ||
bool enable = (bool)arg1; | bool enable = arg1 != NULL; | ||
if (enable) { | if (enable) { | ||
lcr4(rcr4() & ~CR4_TSD); | lcr4(rcr4() & ~CR4_TSD); | ||
} else { | } else { |