- 13 Aug, 2002 32 commits
-
-
Andrew Morton authored
include/linux/prefetch.h does a strange thing: if the arch doesn't have the prefectch functions, this header defines no-op version of them and then defines ARCH_HAS_PREFETCH. So there's no way for mainline code to know if the architecture *really* has prefetch instructions. This information loss is unfortunate. Examples: for (i = 0; i < N; i++) prefetch(foo[i]); Problem is, if `prefetch' is a no-op, the compiler will still generate an empty busy-wait loop. Which it must do. We need to know the truth about ARCH_HAS_PREFETCH to correctly elide that loop.
-
Ingo Molnar authored
This implements CLONE_VM_RELEASE, which lets the child release the 'user VM' at mm_release() time.
-
Ingo Molnar authored
the attached patch implements the per-CPU thread-structure cache to do detached exit, if the parent does not want to be notified of child exit via a signal.
-
Ingo Molnar authored
This adds two new clone() flags: CLONE_SETTLS => if present then the third clone() syscall parameter is the new TLS. CLONE_SETTID => if present then the child TID is written to the address specified by the fourth clone() parameter. the new parameters are handled in a safe way, clone() returns -EFAULT or -EINVAL if there's some problem with them.
-
Badari Pulavarty authored
Here is a trivial bug fix for blkdev_reread_part() in 2.5.31. Without this fix, "fdisk" hangs with following messages: Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot.
-
Randy Dunlap authored
This patch to 2.5.31 pushes "Networking options" and "Network device support" together for all architectures that have them. They shouldn't be split apart by Telephony, I2O, Fusion, etc.
-
Rusty Russell authored
This old __per_cpu_data define wasn't enough if an arch wants to use the gcc __thread prefix (thread local storage), which needs to go *before* the type in the definition. So we have to go for a DECLARE macro, and while we're there, separate DECLARE and DEFINE, as definitions of per-cpu data cannot live in modules. This also means that accidental direct references to per-cpu variables will be caught at compile time.
-
Rusty Russell authored
This makes introduces get_cpu_var()/put_cpu_var() which gets a per-cpu variable and disables preemption, and renames the (unsafe under preemption) "this_cpu()" macro to __get_cpu_var(). It also deletes the redundant definitions in linux/smp.h.
-
Rusty Russell authored
As per Andrew Morton's request.
-
Martin J. Bligh authored
This moves the early ioremap call to after cpu_online_map is initialized. Note everything is wrapped in clustered_apic_mode, so should be safe.
-
Jeff Dike authored
When you reverted the stringify changes I sent last time, you missed removing a comment, which is now grossly wrong. This patch finishes the job.
-
http://fbdev.bkbits.net/fbdev-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
James Simmons authored
-
http://linuxusb.bkbits.net/linus-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Alexander Viro authored
-
Christoph Hellwig authored
Most syscall take a const char * argument in fact, also mark them extern.
-
Tom Rini authored
This is part 3 of 3 of the genrtc patches. This is my own slight bit of work, as well as some work by Randolph Chung. This changes set_rtc_time(struct *rtc_time) to return an int instead of void. This was done so that the arch-specific code here could do additional checks on the time and return an error if needed. This then introduces include/asm-generic/rtc.h, include/asm-i386/rtc.h and include/asm-alpha/rtc.h. include/asm-generic/rtc.h contains the get_rtc_time and set_rtc_time logic that is in drivers/char/rtc.c and has been tested on SMP i386. This also modifies include/asm-ppc/rtc.h to return -ENODEV if no rtc hardware is present. Additionally, Dave Jones pointed out to me a place where we might not be safe when jiffies wraps, so this switches that to time_after(). From Randolph Chung, support for a 64bit kernel and a 32bit userland.
-
Tom Rini authored
This is part 2 of 3 of the genrtc driver work. This is the PPC portion of the patch, which creates include/asm-ppc/rtc.h. This has been in the PPC bitkeeper tree for over a month now.
-
Tom Rini authored
This is the current version of the genrtc driver from the m68k community. This is slightly different than the version I have sent previously in that it has been switched to C99-style initializers, which was done in the current m68k CVS tree by Geert Uytterhoeven, and the needed changes to select/compile it in general. I had previously asked the m68k community if anyone objected to this being submitted by me, and I got Richard Zidlicky's (who's at the top of the file) approval, as well as Geert Uytterhoeven's approval.
-
Albert Cranford authored
i2c update: o Support for SMBus 2.0 PEC Packet Error Checking o New adapter-i2c-frodo for SA 1110 board o New adapter-i2c-rpx for embeded MPC8XX o Replace depreciated cli()&sti() with spin_{un}lock_irq() o Updated documentation
-
Hirofumi Ogawa authored
This patch adds sendfile() support to fatfs.
-
Hirofumi Ogawa authored
sys_sendfile() call, do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in_file->f_op->sendfile(out_file, in_file, ppos, count); But, ssize_t generic_file_sendfile(struct file *in_file, struct file *out_file, loff_t *ppos, size_t count) fist arg of generic_file_sendfile() should be for output. This patch fixes this typo.
-
Christoph Hellwig authored
There are a number of places where generic_file_write could be used if it didn't take i_sem by itself or where it doesn't need it: (1) XFS needs to do some preparation in it's write file operation (most notably taking it's own per-inode locks), after taking i_sem, but before calling the guts of generic_file_write. (2) blockdevices are happy with parralel get_block() operations, and there is nothing i_sem could protect. This patch introduces a generic_file_write_nolock and makes the good old generic_file_write a wrapper around. The block device code is switched over to it.
-
Linus Torvalds authored
-
Rusty Russell authored
The old form of designated initializers are obsolete: we need to replace them with the ISO C forms before 2.6. Gcc has always supported both forms anyway.
-
Rusty Russell authored
These are the completely generic bits (linux/init_task.h and linux/wait.h). From: Art Haas <ahaas@neosoft.com> Here's the latest diffs for the files in include/linux. Patches are against 2.5.31.
-
Jens Axboe authored
The following patch from Anton Blanchard fixes a problem with the sym53c8xx_2 driver in the 2.5 tree. It assumes that the eh error handlers are not called with the host lock held, which they are.
-
Neil Brown authored
The code already copes with the possibility of having read some of the 4byte length but not all, but can never get into that situation. We just need to add a 'return' for the case where read got some data but not enough. Either 0 or -EAGAIN could be returned, they both have the same effect.
-
Neil Brown authored
Now that we actually do shutdown the socket, we should say so instead of just saying that we should....
-
Neil Brown authored
Otherwise if you cannot stop and restart nfsd while a client holds a connection. Why this isn't the default I cannot imagine...
-
Neil Brown authored
Currently svc_sock_setbuf can be called under a spinlock, but it can try to lock a socket, which can block.... Now when we decide that changing the size might be good we set a flag (SK_CHNGBUF) and then later (when the next packet arrives) we change the sizes appropriately.
-
Ingo Molnar authored
This (tested) patch fixes APM support on 2.5.31-BK. The patch is based on Stephen Rothwell's patch.
-
- 12 Aug, 2002 4 commits
-
-
James Simmons authored
into maxwell.earthlink.net:/usr/src/fbdev-2.5
-
http://lia64.bkbits.net/to-linus-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
David Mosberger authored
-
http://linux-ntfs.bkbits.net/ntfs-tng-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
- 13 Aug, 2002 1 commit
-
-
Anton Altaparmakov authored
- Unlock the page in an out of memory error code path in fs/ntfs/aops.c::ntfs_read_block(). - If fs/ntfs/aops.c::ntfs_read_page() is called on an uptodate page, just unlock the page and return. (This can happen due to ->writepage clearing PageUptodate() during write out of MstProtected() attributes. - Remove leaked write code again.
-
- 12 Aug, 2002 3 commits
-
-
David Mosberger authored
into tiger.hpl.hp.com:/data1/bk/lia64/to-linus-2.5
-
Rik van Riel authored
The following patch corrects a bug where rmap would continue trying to swap out a page even after it failed on one pte, which could result in leaked pte chains and a bug when exiting applications which use mlock(). The bug was tracked down by Christian Ehrhardt, the reason it wasn't found earlier was a subtlety in the code, so I've taken the liberty of changing Christian's patch into something more explicit, we shouldn't let this one happen again ;)
-
Linus Torvalds authored
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
-