Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On Fri, Feb 15, 2008 at 11:50:37AM +0900, YAMAMOTO Takashi wrote:

> > Module Name:        src
> > Committed By:       ad
> > Date:               Thu Feb 14 14:26:58 UTC 2008
> > 
> > Modified Files:
> >     src/sys/arch/sparc/sparc: cpu.c
> >     src/sys/kern: kern_cpu.c kern_idle.c kern_kthread.c kern_sleepq.c
> >         kern_synch.c kern_turnstile.c sched_4bsd.c sched_m2.c sys_lwp.c
> >     src/sys/sys: sched.h
> > 
> > Log Message:
> > Make schedstate_percpu::spc_lwplock an exernally allocated item. Remove
> > the hacks in sparc/cpu.c to reinitialize it. This should be in its own
> > cache line but that's another change.
> 
> what's the main motivation of this change?

To eliminate the sparc cpu.c hack that reinitialized spc_lwplock. I don't
understand why the hack wasn't working.

Eventually I would like to put this lock and many others into their own
cache lines on MP systems. Something like the following but with support
for IPLs.

        http://www.netbsd.org/~ad/lockobj.c

Andrew


Home | Main Index | Thread Index | Old Index