]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] prism54 Bug - Fix frequency reporting
Margit Schubert-While [Sun, 5 Sep 2004 11:15:27 +0000 (07:15 -0400)]
[PATCH] prism54 Bug - Fix frequency reporting

* prism54_get_freq is incorrectly returning channel
* and not frequency. Wireless tools detect this, but
* other programs do not, leading to insane reported
* values. (As Jean documents, drivers should really be
* reporting the frequency).
* An example is wavemon.

22 years ago[PATCH] fix for integer overflow in hd6457[02] driver code
Krzysztof Halasa [Sun, 5 Sep 2004 11:09:12 +0000 (07:09 -0400)]
[PATCH] fix for integer overflow in hd6457[02] driver code

The attached patch fixes an integer overflow in drivers for N2, C101,
PCI200SYN WAN cards (brv * port->settings.clock_rate overflowed at
requested clock rate of 8*1024*1024 bps, problem noted by Nagaraj Kanniah).

22 years ago[PATCH] x86-64: split timer resources
Pierre Ossman [Sun, 5 Sep 2004 03:20:12 +0000 (20:20 -0700)]
[PATCH] x86-64: split timer resources

This splits timer resource from 0x40-0x5f to 0x40-0x43, 0x50-053 for
x86_64.  A patch doing this for i386 was released earlier.  Forgot that
we have two x86 platforms.

22 years ago[PATCH] quota minor endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:57 +0000 (06:42 -0700)]
[PATCH] quota minor endianness fixes

missing le32_to_cpu() in printk

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] UDF endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:46 +0000 (06:42 -0700)]
[PATCH] UDF endianness fixes

Lots of crap.  It looks like the thing had never been really tested on
big-endian boxen...  Aside of usual "forgot to convert" bugs there's a cute
one - foo->le16field = cpu_to_le32(bar) does not work on big-endian...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] acorn partitions endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:34 +0000 (06:42 -0700)]
[PATCH] acorn partitions endianness fixes

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] msdos and vfat endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:22 +0000 (06:42 -0700)]
[PATCH] msdos and vfat endianness fixes

Some callers of fat_date_unix2dos() (in msdos/namei.c and vfat/namei.c)
forgot to convert returned host-endian date and time to little-endian.
Since all callers want to get little-endian values, moved the conversion
into function itself.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ext2 endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:10 +0000 (06:42 -0700)]
[PATCH] ext2 endianness fixes

Several places printk a little-endian number without any conversions.
Ones in super.c are particulary unpleasant - there we are getting told that
fs couldn't be mounted because of the following set of incompat features
and it would be nice to have the printed number matching what one could
find in headers...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] adfs endianness fixes
Alexander Viro [Sat, 4 Sep 2004 13:42:00 +0000 (06:42 -0700)]
[PATCH] adfs endianness fixes

Thus starts the series of endianness problems found by sparse tricks..

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://drm.bkbits.net/drm-fntbl
Linus Torvalds [Sat, 4 Sep 2004 11:26:48 +0000 (04:26 -0700)]
Merge bk://drm.bkbits.net/drm-fntbl
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoremove DRIVER_FILE_FIELDS, replace with a private driver structure
Dave Airlie [Sun, 5 Sep 2004 20:55:41 +0000 (06:55 +1000)]
remove DRIVER_FILE_FIELDS, replace with a private driver structure
allocated in open helper and freed in free_filp_priv.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoDrop __HAVE_CTX_BITMAP, __HAVE_SG, __HAVE_PCI_DMA, these are
Dave Airlie [Sun, 5 Sep 2004 20:30:54 +0000 (06:30 +1000)]
Drop __HAVE_CTX_BITMAP, __HAVE_SG, __HAVE_PCI_DMA, these are
fairly straightforward removals..

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoRemove __HAVE_AGP and __HAVE_MTRR, add driver features bitmask,
Dave Airlie [Sun, 5 Sep 2004 19:22:49 +0000 (05:22 +1000)]
Remove __HAVE_AGP and __HAVE_MTRR, add driver features bitmask,
Cleaned up a lot of #ifdef in functions using suggestions from Arjan.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoppc64: move C declaration in ptrace.h into "ifndef __ASSEMBLY__"
Linus Torvalds [Sat, 4 Sep 2004 09:48:06 +0000 (02:48 -0700)]
ppc64: move C declaration in ptrace.h into "ifndef __ASSEMBLY__"

The assembler gets quite confused otherwise.

22 years ago[PATCH] out-of-line locks / other
Zwane Mwaikambo [Sat, 4 Sep 2004 09:19:46 +0000 (02:19 -0700)]
[PATCH] out-of-line locks / other

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / sparc64
Zwane Mwaikambo [Sat, 4 Sep 2004 09:19:34 +0000 (02:19 -0700)]
[PATCH] out-of-line locks / sparc64

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / ppc64
Zwane Mwaikambo [Sat, 4 Sep 2004 09:19:22 +0000 (02:19 -0700)]
[PATCH] out-of-line locks / ppc64

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / ppc32
Zwane Mwaikambo [Sat, 4 Sep 2004 09:19:10 +0000 (02:19 -0700)]
[PATCH] out-of-line locks / ppc32

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / x86_64
Zwane Mwaikambo [Sat, 4 Sep 2004 09:18:59 +0000 (02:18 -0700)]
[PATCH] out-of-line locks / x86_64

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / i386
Zwane Mwaikambo [Sat, 4 Sep 2004 09:18:47 +0000 (02:18 -0700)]
[PATCH] out-of-line locks / i386

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / arm
Zwane Mwaikambo [Sat, 4 Sep 2004 09:18:35 +0000 (02:18 -0700)]
[PATCH] out-of-line locks / arm

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] out-of-line locks / generic
Zwane Mwaikambo [Sat, 4 Sep 2004 09:18:26 +0000 (02:18 -0700)]
[PATCH] out-of-line locks / generic

This patch achieves out of line spinlocks by creating kernel/spinlock.c
and using the _raw_* inline locking functions.

Now, as much as this is supposed to be arch agnostic, there was still a
fair amount of rummaging about in archs, mostly for the cases where the
arch already has out of line locks and i wanted to avoid the extra call,
saving that extra call also makes lock profiling easier.  PPC32/64 was
an example of such an arch and i have added the necessary profile_pc()
function as an example.

Size differences are with CONFIG_PREEMPT enabled since we wanted to
determine how much could be saved by moving that lot out of line too.

ppc64 = 259897 bytes:
   text    data     bss     dec     hex filename
5489808 1962724  709064 8161596  7c893c vmlinux-after
5749577 1962852  709064 8421493  808075 vmlinux-before

sparc64 = 193368 bytes:
  text    data     bss     dec     hex filename
3472037  633712  308920 4414669  435ccd vmlinux-after
3665285  633832  308920 4608037  465025 vmlinux-before

i386 = 416075 bytes
   text    data     bss     dec     hex filename
5808371  867442  326864 7002677  6ada35 vmlinux-after
6221254  870634  326864 7418752  713380 vmlinux-before

x86-64 = 282446 bytes
   text    data     bss     dec     hex filename
4598025 1450644  523632 6572301  64490d vmlinux-after
4881679 1449436  523632 6854747  68985b vmlinux-before

It has been compile tested (UP, SMP, PREEMPT) on i386, x86-64, sparc,
sparc64, ppc64, ppc32 and runtime tested on i386, x86-64 and sparc64.

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fat: add static
Andries E. Brouwer [Sat, 4 Sep 2004 08:31:30 +0000 (01:31 -0700)]
[PATCH] fat: add static

In the long sequence of static additions, here some fat ones.

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Fri, 3 Sep 2004 13:03:00 +0000 (06:03 -0700)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] fix media detection for nForce 2 nics
Manfred Spraul [Fri, 3 Sep 2004 18:16:14 +0000 (14:16 -0400)]
[PATCH] fix media detection for nForce 2 nics

attached is a patch that polls the media setting for non GigE nForce
nics:
Without polling, media changes are not autodetected. This is fatal,
because the nic initialization is asynchroneous, thus "modprobe;ifup"
resulted in a dead network connection. The attached patch fixes that
problem.

It's a repost of a patch I sent around three weeks ago: you objected
that I rely on the nic irq instead of a software timer. I've documented
why this is ok.

22 years ago[PATCH] airo build fix
Andrew Morton [Fri, 3 Sep 2004 18:14:54 +0000 (14:14 -0400)]
[PATCH] airo build fix

drivers/net/wireless/airo.c: In function `issuecommand':
drivers/net/wireless/airo.c:3812: warning: implicit declaration of function `kernel_locked'
*** Warning: "kernel_locked" [drivers/net/wireless/airo.ko] undefined!

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] wavelan uninitalised var.
Dave Jones [Fri, 3 Sep 2004 18:13:22 +0000 (14:13 -0400)]
[PATCH] wavelan uninitalised var.

This seems a little odd, printing out the value of a variable
we haven't read yet.

Signed-off-by: Dave Jones <davej@redhat.com>
22 years ago[PATCH] 3c527 possible oops.
Dave Jones [Fri, 3 Sep 2004 18:13:11 +0000 (14:13 -0400)]
[PATCH] 3c527 possible oops.

If the alloc_skb() fails, we dereference it in the skb_reserve() call.
Move the skb_reserve() call to after the NULL check.
Also clean up some CodingStyle violations whilst in the vicinity.

Signed-off-by: Dave Jones <davej@redhat.com>
22 years agoMerge pobox.com:/spare/repo/linux-2.6
Jeff Garzik [Fri, 3 Sep 2004 18:12:00 +0000 (14:12 -0400)]
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/net-drivers-2.6

22 years agoRemove extra tests from get_user_cpu_mask().
Linus Torvalds [Fri, 3 Sep 2004 12:28:42 +0000 (05:28 -0700)]
Remove extra tests from get_user_cpu_mask().

They aren't internally consistent.

22 years ago[PATCH] fix sched_domains hotplug bootstrap ordering vs. cpu_online_map issue
William Lee Irwin III [Fri, 3 Sep 2004 11:48:28 +0000 (04:48 -0700)]
[PATCH] fix sched_domains hotplug bootstrap ordering vs. cpu_online_map issue

cpu_online_map is not set up at the time of sched domain initialization
when hotplug cpu paths are used for SMP booting.

At this phase of bootstrapping, cpu_possible_map can be used by the
various architectures using cpu hotplugging for SMP bootstrap, but the
manipulations of cpu_online_map done on behalf of NUMA architectures,
done indirectly via node_to_cpumask(), can't, because cpu_online_map
starts depopulated and hasn't yet been populated.

On true NUMA architectures this is a distinct cpumask_t from
cpu_online_map and so the unpatched code works on NUMA; on non-NUMA
architectures the definition of node_to_cpumask() this way breaks and
would require an invasive sweeping of users of node_to_cpumask() to
change it to e.g.  cpu_possible_map, as cpu_possible_map is not suitable
for use at runtime as a substitute for cpu_online_map.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://drm.bkbits.net/drm-fntbl
Linus Torvalds [Fri, 3 Sep 2004 04:58:11 +0000 (21:58 -0700)]
Merge bk://drm.bkbits.net/drm-fntbl
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge starflyer.(none):/home/airlied/bitkeeper/linux-2.5
Dave Airlie [Sat, 4 Sep 2004 06:20:34 +0000 (16:20 +1000)]
Merge starflyer.(none):/home/airlied/bitkeeper/linux-2.5
into starflyer.(none):/home/airlied/bitkeeper/drm-fntbl

22 years agoremove DRM_IOREMAP* and DRM_FIND_MAP macros replace them with inline fns
Dave Airlie [Sat, 4 Sep 2004 06:01:05 +0000 (16:01 +1000)]
remove DRM_IOREMAP* and DRM_FIND_MAP macros replace them with inline fns

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoremove HAVE_DMA_WAITLIST as it was only used by gamma
Dave Airlie [Sat, 4 Sep 2004 05:49:41 +0000 (15:49 +1000)]
remove HAVE_DMA_WAITLIST as it was only used by gamma

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoremove __HAVE_DMA_SCHEDULE was only used by gamma.
Dave Airlie [Sat, 4 Sep 2004 05:43:02 +0000 (15:43 +1000)]
remove __HAVE_DMA_SCHEDULE was only used by gamma.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoDump __HAVE_DMA_FREELIST is only used by gamma.
Dave Airlie [Sat, 4 Sep 2004 05:37:35 +0000 (15:37 +1000)]
Dump __HAVE_DMA_FREELIST is only used by gamma.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoremove DRIVER_FOPS and related macros
Dave Airlie [Sat, 4 Sep 2004 05:21:49 +0000 (15:21 +1000)]
remove DRIVER_FOPS and related macros

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoRemove DRIVER_CTX_[CD]TOR, HAVE_KERNEL_CTX_SWITCH, DRIVER_BUF_PRIV_T, DRIVER_AGP_BUFF...
Dave Airlie [Sat, 4 Sep 2004 05:06:05 +0000 (15:06 +1000)]
Remove DRIVER_CTX_[CD]TOR, HAVE_KERNEL_CTX_SWITCH, DRIVER_BUF_PRIV_T, DRIVER_AGP_BUFFERS_MAP

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoInitial DRM function table removes some if the DRIVER_ macros.
Dave Airlie [Fri, 3 Sep 2004 07:52:02 +0000 (17:52 +1000)]
Initial DRM function table removes some if the DRIVER_ macros.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoMark gamma as broken
Dave Airlie [Fri, 3 Sep 2004 07:14:22 +0000 (17:14 +1000)]
Mark gamma as broken

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Fri, 3 Sep 2004 03:45:59 +0000 (20:45 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] tdfxfb linkage fix v2.0 (the previous one is broken)
Paolo Ornati [Fri, 3 Sep 2004 03:44:40 +0000 (20:44 -0700)]
[PATCH] tdfxfb linkage fix v2.0 (the previous one is broken)

This patch _really_ fixes tdfxfb linkage

22 years ago[PATCH] Fix warning in pc300_tty driver.
Dave Jones [Fri, 3 Sep 2004 03:42:09 +0000 (20:42 -0700)]
[PATCH] Fix warning in pc300_tty driver.

..caused by my last patch to this file.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make hugetlb expansion allocation nowarn
Arjan van de Ven [Fri, 3 Sep 2004 03:39:14 +0000 (20:39 -0700)]
[PATCH] make hugetlb expansion allocation nowarn

a user can do echo 32000 > /proc/sys/vm/nr_hugepapges; at which point most
boxes will get spew about allocation failure. This of course isn't a real
bug so the patch below quiets that.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] update parport MAINTAINERS entry
Maximilian Attems [Fri, 3 Sep 2004 03:39:02 +0000 (20:39 -0700)]
[PATCH] update parport MAINTAINERS entry

Add correct email for parport entry in MAINTAINERS.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mtd/cfi_cmdset_0001: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:38:50 +0000 (20:38 -0700)]
[PATCH] mtd/cfi_cmdset_0001: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] message/i2o_core: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:38:39 +0000 (20:38 -0700)]
[PATCH] message/i2o_core: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] message/mptscsih: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:38:28 +0000 (20:38 -0700)]
[PATCH] message/mptscsih: replace schedule_timeout() with msleep()

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-sf16fmr2: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:38:17 +0000 (20:38 -0700)]
[PATCH] radio/radio-sf16fmr2: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-sf16fmi: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:38:06 +0000 (20:38 -0700)]
[PATCH] radio/radio-sf16fmi: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] saa7146_i2c.c: use msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:37:54 +0000 (20:37 -0700)]
[PATCH] saa7146_i2c.c: use msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-maxiradio: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:37:42 +0000 (20:37 -0700)]
[PATCH] radio/radio-maxiradio: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/miropcm20-rds: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:37:30 +0000 (20:37 -0700)]
[PATCH] radio/miropcm20-rds: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-aimslab: replace while/schedule() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:37:18 +0000 (20:37 -0700)]
[PATCH] radio/radio-aimslab: replace while/schedule() with msleep()

Uses msleep() instead of a while-loop and schedule().  Thus the CPU is
given up for the time desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-cadet: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:37:07 +0000 (20:37 -0700)]
[PATCH] radio/radio-cadet: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radio/radio-maestro: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:36:55 +0000 (20:36 -0700)]
[PATCH] radio/radio-maestro: replace schedule_timeout() with msleep()

Replaced sleep_125ms() with msleep(125), udelay2() with udelay(2),
udelay4() with udelay(4) and udelay16() with udelay(16) and removed the
replaced functions' definitions.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mcd: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:36:43 +0000 (20:36 -0700)]
[PATCH] mcd: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cdu31a: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:36:31 +0000 (20:36 -0700)]
[PATCH] cdu31a: replace schedule_timeout() with msleep()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Sort the CREDITS file properly (and add Jesper)
Jesper Juhl [Fri, 3 Sep 2004 03:36:19 +0000 (20:36 -0700)]
[PATCH] Sort the CREDITS file properly (and add Jesper)

Many entries in the CREDITS file are not properly sorted in alphabetical
order, despite the note in the file that it is supposed to be sorted like
that.

This patch attempts to sort the CREDITS file properly.  No existing entries
were changed, merely moved around in the file.  There where a few tricky
names that I was unsure how to sort (names with characters such as ü, ö,
and people with many names where it was unclear to me what name to sort by
etc), in those cases I've usually left the names where they were unless it
was glaringly obvious they were in the wrong spot.

I've also taken the liberty to add my own name to the file - I have
contributed several tiny/small fixes/cleanups etc over the years.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] coda: add sendfile wrapper
Jan Harkes [Fri, 3 Sep 2004 03:36:08 +0000 (20:36 -0700)]
[PATCH] coda: add sendfile wrapper

Add a wrapper for sendfile support in Coda.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] coda: fix ifdefs for CONFIG_CODA_FS_OLD_API
Jan Harkes [Fri, 3 Sep 2004 03:35:56 +0000 (20:35 -0700)]
[PATCH] coda: fix ifdefs for CONFIG_CODA_FS_OLD_API

Trivial fix to make the CODA_FS_OLD_API config option actually work as
expected.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add msleep_interruptible() function to kernel/timer.c
Maximilian Attems [Fri, 3 Sep 2004 03:35:44 +0000 (20:35 -0700)]
[PATCH] Add msleep_interruptible() function to kernel/timer.c

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] synclink: replace jiffies_from_ms() with msecs_to_jiffies()
Maximilian Attems [Fri, 3 Sep 2004 03:35:32 +0000 (20:35 -0700)]
[PATCH] synclink: replace jiffies_from_ms() with msecs_to_jiffies()

Uses msecs_to_jiffies() instead of the custom jiffies_from_ms().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pcwd: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:35:20 +0000 (20:35 -0700)]
[PATCH] pcwd: replace schedule_timeout() with msleep()

Replace

set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(some_time);

with

msleep(jiffies_to_msecs(some_time));

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] nwflash: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:35:08 +0000 (20:35 -0700)]
[PATCH] nwflash: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] isicom: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:34:56 +0000 (20:34 -0700)]
[PATCH] isicom: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ec3104: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:34:44 +0000 (20:34 -0700)]
[PATCH] ec3104: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dsp56k: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:34:32 +0000 (20:34 -0700)]
[PATCH] dsp56k: replace schedule_timeout() with msleep()

Use msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ds1620: replace schedule_timeout() with msleep()
Maximilian Attems [Fri, 3 Sep 2004 03:34:21 +0000 (20:34 -0700)]
[PATCH] ds1620: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/tc/zs.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:34:09 +0000 (20:34 -0700)]
[PATCH] drivers/tc/zs.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] include/linux/isicom.h MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:33:57 +0000 (20:33 -0700)]
[PATCH] include/linux/isicom.h MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/synclinkmp.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:33:45 +0000 (20:33 -0700)]
[PATCH] drivers/char/synclinkmp.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/synclink.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:33:33 +0000 (20:33 -0700)]
[PATCH] drivers/char/synclink.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/specialix.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:33:22 +0000 (20:33 -0700)]
[PATCH] drivers/char/specialix.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/serial167.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:33:10 +0000 (20:33 -0700)]
[PATCH] drivers/char/serial167.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/selection.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:58 +0000 (20:32 -0700)]
[PATCH] drivers/char/selection.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/rocket_int.h MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:47 +0000 (20:32 -0700)]
[PATCH] drivers/char/rocket_int.h MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/rocket.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:35 +0000 (20:32 -0700)]
[PATCH] drivers/char/rocket.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/riscom8.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:23 +0000 (20:32 -0700)]
[PATCH] drivers/char/riscom8.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/pcxx.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:12 +0000 (20:32 -0700)]
[PATCH] drivers/char/pcxx.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/pcmcia/synclink_cs.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:32:00 +0000 (20:32 -0700)]
[PATCH] drivers/char/pcmcia/synclink_cs.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/mxser.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:31:48 +0000 (20:31 -0700)]
[PATCH] drivers/char/mxser.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/isicom.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:31:36 +0000 (20:31 -0700)]
[PATCH] drivers/char/isicom.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/esp.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:31:24 +0000 (20:31 -0700)]
[PATCH] drivers/char/esp.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/epca.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:31:13 +0000 (20:31 -0700)]
[PATCH] drivers/char/epca.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/amiserial.c MIN/MAX removal
Maximilian Attems [Fri, 3 Sep 2004 03:31:01 +0000 (20:31 -0700)]
[PATCH] drivers/char/amiserial.c MIN/MAX removal

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] silence sn_console driver on non-SGI boxes
Bjorn Helgaas [Fri, 3 Sep 2004 03:30:49 +0000 (20:30 -0700)]
[PATCH] silence sn_console driver on non-SGI boxes

Acked by Jesse.

sn_console: don't print anything unless we're actually on an SGI box.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] announce hpet devices claimed
Bjorn Helgaas [Fri, 3 Sep 2004 03:30:37 +0000 (20:30 -0700)]
[PATCH] announce hpet devices claimed

I think the HPET driver should announce the hardware it claims.  Here's
a patch that prints this:

hpet0: at MMIO 0xc0000ffffc002000, IRQs 74, 75, 76
hpet0: 4ns tick, 3 64-bit timers
hpet1: at MMIO 0xc0000ffffc082000, IRQs 77, 78, 79
hpet1: 4ns tick, 3 64-bit timers

This has been acked by Bob.  I haven't heard from Venkatesh.

Print basic information (MMIO address, IRQs used, tick rate, number
of timers) when claiming an HPET device.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix drivers/net/cs89x0.c warning.
Luiz Capitulino [Fri, 3 Sep 2004 03:30:25 +0000 (20:30 -0700)]
[PATCH] fix drivers/net/cs89x0.c warning.

drivers/net/cs89x0.c: In function `net_close':
drivers/net/cs89x0.c:1601: warning: unused variable `lp'

 'lp'is only used when ALLOW_DMA is defined.

Signed-off-by: Luiz Capitulino <lcapitulino@conectiva.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix compile warning in rivafb on ppc
Christoph Hellwig [Fri, 3 Sep 2004 03:30:15 +0000 (20:30 -0700)]
[PATCH] fix compile warning in rivafb on ppc

riva_get_EDID_i2c is only used on !CONFIG_PPC_OF, so don't compile it on
ppc either.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove ptrinfo
Christoph Hellwig [Fri, 3 Sep 2004 03:30:03 +0000 (20:30 -0700)]
[PATCH] remove ptrinfo

It's defined in slab.c but not used anywhere.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] some missing statics in mm/
Christoph Hellwig [Fri, 3 Sep 2004 03:29:51 +0000 (20:29 -0700)]
[PATCH] some missing statics in mm/

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] stop ->put_inode abuse in vxfs
Christoph Hellwig [Fri, 3 Sep 2004 03:29:39 +0000 (20:29 -0700)]
[PATCH] stop ->put_inode abuse in vxfs

->clear_inode is the right place to free private inode parts.  No idea what
I though when using ->put_inode and i_count check.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix compile warnings in via-pmu.c for !CONFIG_PMAC_PBOOK
Christoph Hellwig [Fri, 3 Sep 2004 03:29:27 +0000 (20:29 -0700)]
[PATCH] fix compile warnings in via-pmu.c for !CONFIG_PMAC_PBOOK

There's some scoping problems so we get unused variables for that config.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix compile warning in ppc64 pmac_feature.c
Christoph Hellwig [Fri, 3 Sep 2004 03:29:16 +0000 (20:29 -0700)]
[PATCH] fix compile warning in ppc64 pmac_feature.c

dump_HT_speeds is only used by #if 0'ed code so if 0 it as well.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make bad_page() print all of page->flags
William Lee Irwin III [Fri, 3 Sep 2004 03:29:04 +0000 (20:29 -0700)]
[PATCH] make bad_page() print all of page->flags

bad_page() only prints out 8 hexadecimal digits of page->flags regardless
of sizeof(page_flags_t).  This leads to confusing and/or incomplete bug
reports.  The following patch uses a field width argument to replace the
hardcoded %08lx so that bad_page() may print the whole of page->flags.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Disable colour conversion in the CPiA Video Camera driver
Luca Risolia [Fri, 3 Sep 2004 03:28:52 +0000 (20:28 -0700)]
[PATCH] Disable colour conversion in the CPiA Video Camera driver

Since in-kernel colorspace conversion is not allowed, this patch disables it
in the CPiA video camera driver by default.  Users should fix the applications
in case they don't work without conversion reenabled by setting the new
'colorspace_conv' module parameter to 1.  This is a temporary solution, so
within a few months deprecated code will be entirely removed.

Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix the barrier IDE detection logic
Alan Cox [Fri, 3 Sep 2004 03:28:40 +0000 (20:28 -0700)]
[PATCH] fix the barrier IDE detection logic

This fixes the logic so we always check for the cache.  It also defaults to
safer behaviour for the non cache flush case now we have the right bits in
the right places.  I've also played a bit with timings - the worst case
timings I can get for the flush are about 7 seconds (which I'd expect as
the engineering worst cases will include retries)

Probably what should happen is that the barrier logic is enabled providing
the wcache is disabled.  I've not meddled with this as I don't know what
the intended semantics and rules are for disabling barrier on a live disk
(eg when a user uses hdparm to turn on the write cache).  In the current
code as with Jens original that cannot occur.

I've also fixed the new printk's as per a private request from Matt Domsch.

Cc: Jens Axboe <axboe@suse.de>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Root reservations for strict overcommit
Alan Cox [Fri, 3 Sep 2004 03:28:28 +0000 (20:28 -0700)]
[PATCH] Root reservations for strict overcommit

This was on my TODO list for a while and it turns out someone already fixed
the armwaving overcommit mode for the same problem.  It is easy to get into
a situation where you have no overcommit and nothing can be done because
there is no memory to clean up the stable but non-useful state of the
machine.

The fix is trivial and duplicated from the armwaving overcommit code path.
The last 3% of the memory can be claimed by root processes only.  It isn't
a cure but it does seem to solve the real world problems - at least
providing you have enough memory for 3% to be useful 8).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>