James Eder writes:
> @@ -2261,7 +2242,19 @@ NTSTATUS WINAPI NtInitiatePowerAction(
> SystemAction,MinSystemState,Flags,Asynchronous);
> return STATUS_NOT_IMPLEMENTED;
> }
> -
> +
> +#ifdef linux
> +static int have_cpufreq(void)
> +{
> +FILE* f = fopen("/sys/device
On Sep 12, 2012, at 2:17 PM, James Eder wrote:
> -valSize = sizeof(longVal);
> -if (!sysctlbyname("hw.cpufrequency", &longVal, &valSize, NULL, 0))
> -cpuHz = longVal;
I haven't tried building, but this would still leave the warning about longVal
being declared but nev