- 10 Jun, 2003 40 commits
-
-
Andrew Morton authored
From: Manfred Spraul and Brian Gerst The patch performs the kmalloc cache lookup for constant kmalloc calls at compile time. The idea is that the loop in kmalloc takes a significant amount of time, and for kmalloc(4096,GFP_KERNEL), that lookup can happen entirely at compile time. A problem has been seen with gcc-3.2.2-5 from RedHat. This code: if(__builtin_constant_t(size)) { if(size < 32) return kmem_cache_alloc(...); if(size < 64) return kmem_cache_alloc(...); if(size < 96) return kmem_cache_alloc(...); if(size < 128) return kmem_cache_alloc(...); ... } doesn't work, because gcc only optimizes the first two or three comparisons, and then suddenly generates code. But we did it that way anyway. Apparently it's fixed in later compilers.
-
Andrew Morton authored
From: "Ni, Michael" <Michael.Ni@hp.com> Update the MAINTANERS file for the various Compaq mass-storage drivers
-
Andrew Morton authored
From: "Martin J. Bligh" <mbligh@aracnet.com> Patch from Martin Bligh, based on observations by Andrew Theurer and Bill Irwin. TARGET_CPUS is used as a cpu mask by some things, and an apic mask for others. For SMP, that doesn't matter (they're the same), but for Summit it does. This patch changes TARGET_CPUS to consistently be a cpu mask everywhere. Should be a no-op for normal platforms. Invalid arguments to cpu_mask_to_apicid for clustered apic mode architectures will now return the broadcast apicid, in order to ensure someone still gets the interrupt (was the default init value, and is safest).
-
Andrew Morton authored
From: Dave Hansen <haveblue@us.ibm.com> In order to turn an 8-way x440 into a 4-way for testing, we often use mem=(1/2 of total) and maxcpus=4. maxcpus has always worked, but mem= hasn't. The mem= parameter actually changes the kernel's e820 structure, which manifests itself as max_pfn. node_end_pfn[] obeys this because of find_max_pfn_node(), but node_start_pfn[] wasn't modified. If you have a mem= line that causes memory to stop before the beginning of a node, you get a condition where start > end (because start was never modified). There is a bug check for this, but it was placed just _before_ the error was made :) Also, the bootmem alloc functions die if you request something of zero size from them. This patch avoids that too. This shouldn't have much of an effect on non-NUMA systems.
-
Andrew Morton authored
If two processes are waiting in rtc_read(), only one will get the data. The other will madly spin around theloop in state TASK_RUNNING until another interrupt happens. Fix it by resetting TASK_INTERRUPTIBLE _inside_ the retry loop.
-
Andrew Morton authored
From: Andi Kleen <ak@suse.de> This makes the 2.5 kernel with common ioctl32 code compile with DRM enabled again. The DRM code in the kernel is obsolete anyways and has been long removed. It definitely does not belong in the common ioctl emulation layer. Egbert Eich is working on proper 32bit DRM emulation, but it will be likely directly integrated in the DRI/DRM sources.
-
Linus Torvalds authored
for the default "pci_domain_nr()" definition. The inline function will evaluate the argument.
-
Rusty Russell authored
Milton Miller noticed a free-after-use problem in the cleanup path of a failed module load. The problem is that mod is moved to point from the sucked-in file (always freed last) to the module core, after which time the "free(mod->core), reference mod->percpu" sequence is bogus, eg. when the module_init function fails. This is fixed by keeping the pointer in a local variable, which solves the problem. We no longer need to reference the free'd data structure.
-
Steven Cole authored
-
Neil Brown authored
This should fix most (all??) of the recently reported problems with MD: Recent changes to md malloced some data structures differently and didn't zero out those data structures, where the old code had zeroed it out. This adds the relevant memsets.
-
bk://kernel.bkbits.net/gregkh/linux/pci-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
bk://kernel.bkbits.net/gregkh/linux/linus-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/pci-2.5
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Linus Torvalds authored
so hackish.
-
bk://ldm.bkbits.net/linux-2.5-coreLinus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Patrick Mochel authored
-
Patrick Mochel authored
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/gregkh-2.5
-
Linus Torvalds authored
so that __d_drop() can safely be done multiple times on a dentry without corrupting other hash entries. Noticed by Trond Myklebust.
-
Linus Torvalds authored
list pointers to give us a nice oops if somebody is doing something bad. Also introduce hlist_del_rcu_init() - same as hlist_del_init().
-
Patrick Mochel authored
-
David Brownell authored
The endpoint disable() change resolved the bug identified by the FIXME ... this updates the comment.
-
David Brownell authored
The main thing this fixes is making the control-OUT path work. Drivers like RNDIS and DFU need it; this should resolve one bug report. It also has some minor cleanups.
-
David Brownell authored
Rather than just saying that USBDEVFS_CONTROL failed, say also which process it failed for ... so it's easier to figure out what's happen.
-
Alan Stern authored
This patch makes the hub status irq DMA-aware, by pre-allocating the transfer buffer in consistent memory. Unfortunately, there doesn't seem to be an easy way to do the same for the status report buffers.
-
Matthew Dharm authored
This patch removes the code that faked the EVPD INQUIRY. The SCSI core no longer does that, so there is no need to filter it.
-
Matthew Dharm authored
This patch re-organizes probe and disconnect into smaller functions (which are all functionally equivalent to the current code). This allows easier verification that the code is correct, and will make for easier implementation of the proper SCSI shutdown code.
-
Matthew Dharm authored
This patch introduces some handling for babble conditions. Basically, once a babble is detected, we return sense data saying the command was invalid. We also go on to transfer the CSW (for BBB transport) so we stay in phase with the device. This isn't guaranteed to work with every device that babbles, but it can't hurt compared to the current behavior. Properly operating devices are unaffected by this patch.
-
Olaf Hering authored
-
Patrick Mochel authored
- Remove explicit call from arm PM sequence, as its handled implicitly by sysdev_restore() in driver model core.
-
Patrick Mochel authored
Patch originally from Nigel Cunningham and Pavel Machek. Cleaned up and converted to new system device API by your truly.
-
Patrick Mochel authored
-
Patrick Mochel authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-