Re: [PATCH 4/4] ntdll: Add more complete implementation of NtPowerInformation

2012-09-13 Thread Alexandre Julliard
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

Re: [PATCH 4/4] ntdll: Add more complete implementation of NtPowerInformation

2012-09-12 Thread Ken Thomases
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