Re: [E-devel] [e] cpufreq: OpenBSD support

2012-10-01 Thread rustyBSD
On 10/01/12 19:41, Vincent Torri wrote: > is the freebsd support still broken avec your changes ? Yes I think, but I'm not sure. -- Got visibility? Most devs has no idea what their production app looks like. Find out how fa

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-10-01 Thread Vincent Torri
On Mon, Oct 1, 2012 at 3:14 PM, rustyBSD wrote: in svn, thanks > > PS: I forgot to mention that the freebsd support > is broken. > > Here are patches again. This time it's really ok, > I also quickly modified the freebsd code. is the freebsd support still broken avec your changes ? Vincent --

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-10-01 Thread rustyBSD
On 10/01/12 15:20, Vincent Torri wrote: >> ? > I have seen that : > > printf("CPU: %d MHz Free: %ld MB\n", cpuspeed, > sysconf(_SC_AVPHYS_PAGES)*sysconf(_SC_PAGESIZE))>>20 > > so it displays the freq in Mhz, no ? > My "?" meant that it's not actually the problem. The freq is correctly displayed in

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-10-01 Thread Vincent Torri
On Mon, Oct 1, 2012 at 3:14 PM, rustyBSD wrote: > On 10/01/12 08:22, Vincent Torri wrote: >> >> maybe this could help you : >> >> http://stackoverflow.com/questions/4226353/show-memory-and-cpu-in-c >> >> Vincent > > ? I have seen that : printf("CPU: %d MHz Free: %ld MB\n", cpuspeed, sysconf(_SC_

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-10-01 Thread rustyBSD
On 10/01/12 08:22, Vincent Torri wrote: maybe this could help you : http://stackoverflow.com/questions/4226353/show-memory-and-cpu-in-c Vincent ? There is no problem when getting the frequency. The only difference with linux is that instead of displaying available frequencies (in the menu), w

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-09-30 Thread Vincent Torri
On Mon, Oct 1, 2012 at 8:10 AM, rustyBSD wrote: > On 09/30/12 14:11, rustyBSD wrote: >>> >>> are you sure about fresqet.c ? Just returning 1 ? >> >> Not really. >> >> I'm looking for a way to change the cpu freq > > Mmhh... > > The problem with openbsd's sysctl is that > we get cpu freq in Mhz, bu

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-09-30 Thread rustyBSD
On 09/30/12 14:11, rustyBSD wrote: are you sure about fresqet.c ? Just returning 1 ? Not really. I'm looking for a way to change the cpu freq Mmhh... The problem with openbsd's sysctl is that we get cpu freq in Mhz, but we can only set it in percents - and not up to 100%. So I put percents i

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-09-30 Thread rustyBSD
On 09/30/12 13:57, Vincent Torri wrote: > are you sure about fresqet.c ? Just returning 1 ? Not really. I'm looking for a way to change the cpu freq -- Everyone hates slow websites. So do we. Make your web apps faster with

Re: [E-devel] [e] cpufreq: OpenBSD support

2012-09-30 Thread Vincent Torri
are you sure about fresqet.c ? Just returning 1 ? Vincent On Sun, Sep 30, 2012 at 1:23 PM, rustyBSD wrote: > Hi, > I added support for OpenBSD on the cpufreq > module. > > Thanks > > -- > Everyone hates slow websites. So

[E-devel] [e] cpufreq: OpenBSD support

2012-09-30 Thread rustyBSD
Hi, I added support for OpenBSD on the cpufreq module. Thanks --- e_mod_main.cSun Sep 30 11:16:50 2012 +++ e_mod_main.cSun Sep 30 11:11:57 2012 @@ -6,6 +6,12 @@ #include #endif +#ifdef __OpenBSD__ +#include +#include +#include +#endif + /* gadcon requirements */ static E