- 06 Aug, 2003 8 commits
-
-
Patrick Mochel authored
- struct device_pm_info - Defined in include/linux/pm.h. - Statically allocated in struct device (->power) - Body is empty if CONFIG_PM=n - deivce_pm_{add,remove} - Called from device_{add,del} respectively. - Adds device to internal list of power managed objects and creates attribute group for device. (Group currently empty, but placeholder directory is created for now) - Are defined as empty statc inline's when CONFIG_PM=n.
-
Patrick Mochel authored
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power
-
Patrick Mochel authored
Attribute groups provide the ability to register a set of sysfs attributes for a kobject all at once, and optionally create a subdirectory to hold them. The constructs are simple: struct attribute_group { char * name; struct attribute * attrs; }; int sysfs_create_group(struct kobject *, struct attribute_group *); void sysfs_remove_group(struct kobject *, struct attribute_group *); If ->name is not NULL, then we create a subdirectory of that name to hold the attributes. We then iterate over ->attrs and create a file for each, in the subdirectory if we created one. This prevents one from having to register a kobject (and define a new kobj_type) to create a subdirectory for a group of attributes. Attributes currently defined in that way can be converted to use attribute_groups easily, with one caveat: The attributes that are added for a kobject, even if in a subdirectory, must be declared as the high-level attribute type (with an embedded struct attribute) for the kobject, and conform to the kobj_type's calling convention for reading/writing attributes. The kobject that you're creating attributes for owns the directory, and will assume ownership of the subdirectory. sysfs will reference this kobject, and it's kobj_type, when the attribute file is opened to determine the methods for reading/writing the attribute. sysfs will call the kobj_type's show()/store() methods, which will convert the kobject into a high-level object type, and convert the attribute into a high-level attribute type, which (depending on the kobj_type) is expected to have a show() and/or store() method. Note that this makes it only slightly easier to create attributes en masse, though it is a bit technically superior, since it doesn't require a new kobj_type and kobject register. More will come in this area..
-
Patrick Mochel authored
- Create drivers/base/power/ - Move drivers/base/power.c there. - Split into shutdown.c suspend.c and resume.c
-
Patrick Mochel authored
- Move kernel/pm.c to kernel/power/pm.c - Move poweroff sysrq registration to kernel/power/poweroff.c - Mark pm_* functions deprecated to prevent new uers.
-
Patrick Mochel authored
Remove dependency on CONFIG_SOFTWARE_SUSPEND, since CONFIG_ACPI_SLEEP is sufficient. From Pavel Machek.
-
Patrick Mochel authored
From Pavel Machek.
-
Patrick Mochel authored
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power
-
- 05 Aug, 2003 32 commits
-
-
Linus Torvalds authored
-
Roland McGrath authored
When a dead detached thread has been temporarily zombified because it's ptraced and its tracer tries to reap it, it deadlocks on SMP. Here's the fix.
-
Neil Brown authored
A recent patch changed the rpc/*/channel files to behave differently depending on whether they were open for read or not. This hadn't been tested thoroughly. The cache_reader structure that was now only allocated when opening for read, had a field that was iused when writing. This patch removes that field and takes a different approach to solving the issue it addressed. And it has been tested a bit better.
-
Roland McGrath authored
A dying initial thread (thread group leader) sends SIGCHLD when it exits, but it ought to wait until all other threads exit as well. The cases of secondary threads exitting first were handled properly, but not this one. This exit.c patch fixes that test case, and I think catches the other potential bugs of this kind as well. The signal.c change adds some bug catchers, the second of which will trip on the test case in the absence of the exit.c fix.
-
Jeff Garzik authored
-
bk://linux-pnp.bkbits.net/pnp-2.5Linus Torvalds authored
into home.osdl.org:/home/torvalds/v2.5/linux
-
Adam Belay authored
-
Adam Belay authored
This patch removes the pnp name database code. Most buses, including pnp, will be using userspace to name devices in the near future. Also dev->name will be removed from the driver model soon.
-
Adam Belay authored
This patch moves the low level bios calls to a separate file, "bioscalls.c". It is a cleanup that will improve organization of the pnpbios driver code.
-
Adam Belay authored
This patch is needed in order to avoid a potential oops. It is similiar to the changes made to pci.
-
Adam Belay authored
This patch moves the resource parsing functions from support.c to the pnpbios driver. Originally these functions were intended for other pnp protocols but in reality they are only used by the PnPBIOS driver. This patch greatly cleans up the code in both the parsing functions and their connection with the pnpbios driver. Also note that pnpbios.h has been added for local pnpbios functions.
-
Adam Belay authored
This is not needed.
-
Adam Belay authored
This patch is similar to the disabled resource patch in that it avoids direct numeric comparisons with data in unset resource structures.
-
Linus Torvalds authored
the entry that we got through the lookup_mnt(). Noted by Dick Streefland.
-
bk://bk.arm.linux.org.uk/linux-2.5-rmkLinus Torvalds authored
into home.osdl.org:/home/torvalds/v2.5/linux
-
Russell King authored
-
Russell King authored
-
Russell King authored
ARXESCSI does not have the interrupt routed to the host machine, so we need to babysit the host interface. We do this via a variant of the normal command function in fas216.c Fix a bug in the procfs file handling in the EESOX SCSI driver.
-
Russell King authored
Use the ioremapped region for accesses to SA1111 IRQ controller registers.
-
Russell King authored
-
Russell King authored
-
Russell King authored
-
Patrick Mochel authored
-
Neil Brown authored
From: Galen Michael Elias <gme@citi.umich.edu> This patch fixes two places where the handling of page boundaries was incorrect and caused to IO_ERR's when it shouldn't have. 1. In decode_write it was just a small typo. 2. In decode_compound we avoid using READ_BUF, but don't provide all of it's functionality, specifically crosses a page boundary.
-
Neil Brown authored
Though the nfsd module can create this, having it always there makes auto-loading-on-mount work better. Note: it was previously recommended that the nfsd filesystem be mounted on /proc/fs/nfs, which I was never comfortable with. Henceforth the recommended location will be /proc/fs/nfsd. nfs-utils 1.0.6 and later will support both.
-
Neil Brown authored
-
Neil Brown authored
Such a request would cause the nul terminator to be written to some other page, and cause havoc. Also rearrange two tests to avoid the possibility of testing the byte just past the end of a buffer - doing so can causes an oops with appropriate kernel-debug config options
-
Neil Brown authored
The 'acl' folks would like an export flag, so this patch reserves one and also discards some that aren't used and never will be (for the named purpose).
-
Neil Brown authored
NFSEXP_CROSSMNT used to mean something different, so using a different name reduces the chance of confusion. Also there is currently a surplus of vowels, so there is no need to be frugal
-
Neil Brown authored
When a sunrpc/cache channel is not open for reading, the cache doesn't bother making and waiting for up-calls. However it doesn't currently distingish between open-for-read/write and open-for-write, so an op-for-write will look like a reader and will cause inappropriate waiting. This patch checks if a file is open-for-read and will only register a file as a reader if it really is one.
-
bk://kernel.bkbits.net//home/mochel/linux-2.5-powerLinus Torvalds authored
into home.osdl.org:/home/torvalds/v2.5/linux
-
Patrick Mochel authored
Resided in arch/i386/kernel/dmi_scan.c and was not used by any of the blacklist functions. If it turns out to required, we can add it back later.
-