[PATCH] (amd64) VIA CPU feature set detection

2013-09-26 Thread bytevolcano
Patch below allows the kernel (amd64) to detect CPU features (VIA PadLock, temperature sensors, etc.) on modern VIA Eden CPUs. My apologies for the previous substandard overly-verbose message. Index: sys/arch/amd64/amd64/identcpu.c

Re: openbsd ioctl fix (in6.c)

2013-09-26 Thread Loganaden Velvindron
ping ? On Wed, Sep 18, 2013 at 11:01 AM, Loganaden Velvindron lo...@elandsys.com wrote: On Tue, Aug 27, 2013 at 10:37:30AM +0200, Martin Pieuchot wrote: On 22/08/13(Thu) 23:31, Claudio Jeker wrote: On Wed, Aug 21, 2013 at 09:59:56AM -0700, Loganaden Velvindron wrote: I'm not sure if

Re: pthread_getspecific is too slow

2013-09-26 Thread John Carr
I attached a program showing the slowdown. It spawns threads that call pthread_getspecific in a tight loop. On Linux the wall clock time is essentially constant for number of threads up to number of processors. On OpenBSD 5.3 wall clock time increases approximately linearly with number of

Re: pthread_getspecific is too slow

2013-09-26 Thread John Carr
I think _spinlock is suboptimal, although that's not the real problem as far as my code is concerned. Spinlock is a loop: while (_atomic_lock(lock-ticket)) _sched_yield(); This causes a system call every time the lock is held by another thread. In many cases the spinlock protects a simple

[PATCH] uthum(4) calibration message fix

2013-09-26 Thread SASANO Takayoshi
Hello, The message of uthum(4)'s calibration offset is incorrect when the offset is -1 degC 0. I wrote the patch and it is oked by yuo@ (via twitter[1]), but two months has passed. So I send the patch to tech@ to check again. ok? [1] https://twitter.com/uaa/status/362275395430658049