Source-Changes archive

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

CVS commit: [netbsd-7] src



Module Name:    src
Committed By:   martin
Date:           Mon Dec  1 11:38:43 UTC 2014

Modified Files:
        src/share/man/man9 [netbsd-7]: callout.9
        src/sys/arch/x86/pci [netbsd-7]: fwhrng.c
        src/sys/arch/x86/x86 [netbsd-7]: via_padlock.c
        src/sys/dev/bluetooth [netbsd-7]: bcsp.c btkbd.c
        src/sys/dev/ic [netbsd-7]: nslm7x.c
        src/sys/dev/ir [netbsd-7]: irframe_tty.c
        src/sys/dev/isa [netbsd-7]: aps.c
        src/sys/dev/pci [netbsd-7]: pccbb.c
        src/sys/dev/pcmcia [netbsd-7]: btbc.c
        src/sys/dev/sdmmc [netbsd-7]: sdmmc.c
        src/sys/dev/sysmon [netbsd-7]: sysmon_envsys_events.c sysmonvar.h
        src/sys/dev/usb [netbsd-7]: ohci.c
        src/sys/dev/wscons [netbsd-7]: wskbd.c
        src/sys/kern [netbsd-7]: kern_ktrace.c
        src/sys/net [netbsd-7]: if_ecosubr.c

Log Message:
Pull up following revision(s) (requested by ozaki-r in ticket #279):
        sys/kern/kern_ktrace.c: revision 1.166
        sys/dev/isa/aps.c: revision 1.16
        sys/dev/sysmon/sysmonvar.h: revision 1.45
        sys/dev/ir/irframe_tty.c: revision 1.60
        sys/dev/sysmon/sysmon_envsys_events.c: revision 1.111
        sys/dev/sysmon/sysmon_envsys_events.c: revision 1.112
        sys/dev/pci/pccbb.c: revision 1.207
        sys/dev/wscons/wskbd.c: revision 1.135
        sys/dev/usb/ohci.c: revision 1.254
        sys/net/if_ecosubr.c: revision 1.41
        sys/dev/pcmcia/btbc.c: revision 1.17
        sys/arch/x86/x86/via_padlock.c: revision 1.23
        sys/dev/sdmmc/sdmmc.c: revision 1.23
        sys/dev/bluetooth/btkbd.c: revision 1.17
        sys/dev/bluetooth/bcsp.c: revision 1.25
        sys/arch/x86/pci/fwhrng.c: revision 1.8
        sys/dev/ic/nslm7x.c: revision 1.61
        share/man/man9/callout.9: revision 1.28
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
Discussed with martin@ and riastradh@.
Make it clear that we should use not callout_stop but callout_halt
before callout_destroy
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete.
Reviewed by riastradh@.
Kill sme_callout_mtx and use sme_mtx instead
We can use sme_mtx for the callout as well. Actually we should do so
because sme_events_list and some other data that are touched in the
callout should be protected by sme_mtx, not sme_callout_mtx.
Discussed with riastradh@ in
http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete. And also we make sure that SME_CALLOUT_INITIALIZED
is unset before calling callout_halt to prevent the callout from calling
callout_schedule. This is the same as what we did in sys/netinet6/mld6.c@1.61.
Reviewed by riastradh@.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.27.2.1 src/share/man/man9/callout.9
cvs rdiff -u -r1.7 -r1.7.2.1 src/sys/arch/x86/pci/fwhrng.c
cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/arch/x86/x86/via_padlock.c
cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/dev/bluetooth/bcsp.c
cvs rdiff -u -r1.16 -r1.16.4.1 src/sys/dev/bluetooth/btkbd.c
cvs rdiff -u -r1.60 -r1.60.4.1 src/sys/dev/ic/nslm7x.c
cvs rdiff -u -r1.59 -r1.59.4.1 src/sys/dev/ir/irframe_tty.c
cvs rdiff -u -r1.15 -r1.15.14.1 src/sys/dev/isa/aps.c
cvs rdiff -u -r1.206 -r1.206.4.1 src/sys/dev/pci/pccbb.c
cvs rdiff -u -r1.16 -r1.16.2.1 src/sys/dev/pcmcia/btbc.c
cvs rdiff -u -r1.22 -r1.22.4.1 src/sys/dev/sdmmc/sdmmc.c
cvs rdiff -u -r1.110 -r1.110.4.1 src/sys/dev/sysmon/sysmon_envsys_events.c
cvs rdiff -u -r1.44 -r1.44.12.1 src/sys/dev/sysmon/sysmonvar.h
cvs rdiff -u -r1.253 -r1.253.2.1 src/sys/dev/usb/ohci.c
cvs rdiff -u -r1.134 -r1.134.2.1 src/sys/dev/wscons/wskbd.c
cvs rdiff -u -r1.164 -r1.164.4.1 src/sys/kern/kern_ktrace.c
cvs rdiff -u -r1.40 -r1.40.2.1 src/sys/net/if_ecosubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index