some strange constructs (bugs?) in if_tun.c

2011-06-02 Thread Martin Birgmeier
I am looking at net/if_tun.c, function tunwrite() (this is 7.4, but 8.2 is nearly the same): There is a local variable "error" which is initialized to zero and then seemingly never changed, until it is used as a return value if m_uiotombuf() fails: ... int error = 0; ...

All CPUs always running at profhz

2011-03-06 Thread Martin Birgmeier
I set to kern.hz=200 in loader.conf). Using ps -o ...,flags,... I see that no process has profiling turned on. Why is this so? Especially on laptops, I'd like to save power by lowering the interrupt rate. Regards, Martin -- Martin Birgmeier