Re: CVS commit: src/sys/kern

2011-11-21 Thread Joerg Sonnenberger
On Mon, Nov 21, 2011 at 01:44:38PM +, Izumi Tsutsui wrote:
 Module Name:  src
 Committed By: tsutsui
 Date: Mon Nov 21 13:44:38 UTC 2011
 
 Modified Files:
   src/sys/kern: subr_cprng.c
 
 Log Message:
 Include MD machine/cpu_counter.h only if defined(__HAVE_CPU_COUNTER).
 
 XXX: Why not timecounter(9) but deprecated cpu_counter32() and microtime(9)?

microtime(9) is part of timecounter(9). There is no real replacement for
cpu_counter32, which is doing a lot less processing than the
alternatives.

Joerg


Re: CVS commit: src/sys/kern

2011-11-21 Thread Izumi Tsutsui
  Modified Files:
  src/sys/kern: subr_cprng.c
  
  Log Message:
  Include MD machine/cpu_counter.h only if defined(__HAVE_CPU_COUNTER).
  
  XXX: Why not timecounter(9) but deprecated cpu_counter32() and microtime(9)?
 
 microtime(9) is part of timecounter(9).

With extra overhead?

 There is no real replacement for
 cpu_counter32, which is doing a lot less processing than the
 alternatives.

It seems used to get a random number and
I think MI getbintime(9) is simple and enough.

---
Izumi Tsutsui


Re: CVS commit: src/lib/libc/arch/vax

2011-11-21 Thread Christos Zoulas
In article 2021161748.b09dd17...@cvs.netbsd.org,
Chuck Silvers source-changes-d@NetBSD.org wrote:
-=-=-=-=-=-

gcc 4.5 on vax creates PLT stubs with an entry mask of 0xffc
rather than 0 like gcc 4.1 did, so the sneaky assembly functions
that ret without really returning now clobber their registers.
adjust these functions to avoid this problem.

Whee! This should fix all the vfork lossage! Any news on the addsi3 issue?

christos



Re: CVS commit: src/sys/fs/union

2011-11-21 Thread YAMAMOTO Takashi
hi,

do you have any plan on fs/unionfs?  eg. remove it

YAMAMOTO Takashi

 Module Name:  src
 Committed By: hannken
 Date: Mon Nov 21 18:29:23 UTC 2011
 
 Modified Files:
   src/sys/fs/union: union.h union_subr.c union_vfsops.c union_vnops.c
 
 Log Message:
 Replace flag based union node locking with generic vnode lock, support
 shared and nowait locks and protect un_uppervp and un_*sz with mutex.
 
 Mark file system MPSAFE.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.22 src/sys/fs/union/union.h
 cvs rdiff -u -r1.52 -r1.53 src/sys/fs/union/union_subr.c
 cvs rdiff -u -r1.64 -r1.65 src/sys/fs/union/union_vfsops.c
 cvs rdiff -u -r1.48 -r1.49 src/sys/fs/union/union_vnops.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


Re: CVS commit: src/sys/fs/union

2011-11-21 Thread David Holland
On Tue, Nov 22, 2011 at 01:17:43AM +, YAMAMOTO Takashi wrote:
  hi,
  
  do you have any plan on fs/unionfs?  eg. remove it

My vote would be to remove it; it doesn't work and the only reason it
was ever brought in had to do with alleged locking improvements.

-- 
David A. Holland
dholl...@netbsd.org