Source-Changes archive

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

CVS commit: src/sys



Module Name:    src
Committed By:   drochner
Date:           Thu Feb 28 14:25:12 UTC 2008

Modified Files:
        src/sys/dev/cardbus: cardbus.c
        src/sys/dev/pci: pci.c
        src/sys/kern: kern_pmf.c kern_subr.c subr_autoconf.c
        src/sys/sys: device.h pmf.h

Log Message:
Extend the pmf suspend/resume hooks by a shutdown method, so drivers
can register a shutdown handler explicitely.
Install a pci bus shutdown handler which disables bus master accesses
for all childs, so the drivers don't need to care.
This will hopefully be sufficient to replace the shutdownhooks
(together with the powerhooks). (It has been suggested to use some
general event notification framework for shutdown handlers, but there
might be cases where shutdown handlers must be run in an order following
the device hierarchy, which wouldn't be easy with event handlers
not tied to drivers.)
approved by David Young


To generate a diff of this commit:
cvs rdiff -r1.89 -r1.90 src/sys/dev/cardbus/cardbus.c
cvs rdiff -r1.112 -r1.113 src/sys/dev/pci/pci.c
cvs rdiff -r1.12 -r1.13 src/sys/kern/kern_pmf.c
cvs rdiff -r1.181 -r1.182 src/sys/kern/kern_subr.c
cvs rdiff -r1.132 -r1.133 src/sys/kern/subr_autoconf.c
cvs rdiff -r1.103 -r1.104 src/sys/sys/device.h
cvs rdiff -r1.6 -r1.7 src/sys/sys/pmf.h

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