]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] NULL noise removal in usb/gadget
Alexander Viro [Fri, 27 Aug 2004 13:59:29 +0000 (06:59 -0700)]
[PATCH] NULL noise removal in usb/gadget

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ifdef fixes
Alexander Viro [Fri, 27 Aug 2004 13:59:17 +0000 (06:59 -0700)]
[PATCH] ifdef fixes

smc91x.c: missing ifdef CONFIG_ISA around ISA-only code.
asm-arm/apm.h: ifdef CONFIG_APM breaks if APM is a module.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] misc alpha bits
Alexander Viro [Fri, 27 Aug 2004 13:59:05 +0000 (06:59 -0700)]
[PATCH] misc alpha bits

* long constant in a.out.h
* missing cast to pointer in pgtable.h
* removed useless __chk_user_ptr() in get_user() and put_user() - with fixed
  typeof handling in sparse we are getting the check from
  __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
  anyway, so __chk_user_ptr() is redundant there.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] checksum.h annotations
Alexander Viro [Fri, 27 Aug 2004 13:58:54 +0000 (06:58 -0700)]
[PATCH] checksum.h annotations

missing annotations in csum_partial_copy_from_user() on arm and ppc

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] misc sound/oss bits
Alexander Viro [Fri, 27 Aug 2004 13:58:42 +0000 (06:58 -0700)]
[PATCH] misc sound/oss bits

 - a couple of PCI drivers made dependent on CONFIG_PCI
 - signed char fix in wavfront.c

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoFix "insert_resource()" nesting bug
Linus Torvalds [Fri, 27 Aug 2004 12:29:11 +0000 (05:29 -0700)]
Fix "insert_resource()" nesting bug

It used to create totally impossible resource trees in some
circumstances where it was asked to insert a conflicting
resource. We never noticed, because it wasn't used that much.

Make it return the proper error instead.

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Fri, 27 Aug 2004 12:23:47 +0000 (05:23 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] arm Kconfig fixes
Alexander Viro [Fri, 27 Aug 2004 12:13:44 +0000 (05:13 -0700)]
[PATCH] arm Kconfig fixes

ARM dependency and makefile fixes (ACKed by rmk)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] 64bit portability fixes (pointer-to-int stuff)
Alexander Viro [Fri, 27 Aug 2004 12:13:32 +0000 (05:13 -0700)]
[PATCH] 64bit portability fixes (pointer-to-int stuff)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] 64bit cleanup in bt878 and btaudio
Alexander Viro [Fri, 27 Aug 2004 12:13:20 +0000 (05:13 -0700)]
[PATCH] 64bit cleanup in bt878 and btaudio

~0x0UL passed in u32 argument will do what the authors wanted, but it's
a hell of a silly way to spell ~0U on 32bit boxen and it generates warnings on
64bit boxen (we get correct value after truncation, but compiler doesn't
know that ;-)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] wf_midi check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:13:07 +0000 (05:13 -0700)]
[PATCH] wf_midi check_region() removal

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mpu401 check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:12:55 +0000 (05:12 -0700)]
[PATCH] mpu401 check_region() removal

mpu401 ports are claimed by callers now
probe_mpu401() gets pointer to resulting struct resource
callers updated, a bunch of check_region() calls eliminated

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cmpci cleanup
Alexander Viro [Fri, 27 Aug 2004 12:12:44 +0000 (05:12 -0700)]
[PATCH] cmpci cleanup

cmpci probing partially cleaned up in preparation to mpu401 fixes

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] maui cleanup, fixes and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:12:31 +0000 (05:12 -0700)]
[PATCH] maui cleanup, fixes and check_region() removal

probing cleaned up
leaks on failure exits fixed
ports handling mostly cleaned up (will be completed later, when we do mpu401)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ad1848 check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:12:19 +0000 (05:12 -0700)]
[PATCH] ad1848 check_region() removal

* ports for ad1848 are now claimed by callers
* ad1848_detect() gets pointer to struct resource in question
* ad1848_init() gets the same pointer and consumes it
* ports for mss are now claimed by callers (both config and ad1848 ones)
* probe_ms_sound() gets pointer to ad1848 ports
* attach_ms_sound() gets the same pointer and consumes both regions.
* callers updated.  That had killed a *lot* of check_region() and closed
  corresponding races.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] opl3 cleanup and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:12:07 +0000 (05:12 -0700)]
[PATCH] opl3 cleanup and check_region() removal

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sgalaxy cleanup and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:11:55 +0000 (05:11 -0700)]
[PATCH] sgalaxy cleanup and check_region() removal

probing cleaned up, handling of ports mostly fixed.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pss cleanup, fixes and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:11:42 +0000 (05:11 -0700)]
[PATCH] pss cleanup, fixes and check_region() removal

probing cleaned up, handling of ports mostly fixed.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mad16 cleanup, fixes and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:11:31 +0000 (05:11 -0700)]
[PATCH] mad16 cleanup, fixes and check_region() removal

* probing cleaned up
* register ports claimed
* handling of other ports mostly fixed (will be completed later in series)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trix cleanup and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:11:19 +0000 (05:11 -0700)]
[PATCH] trix cleanup and check_region() removal

probing cleaned up, claiming of ports mostly fixed (will be finished in
ad1848 patch later in series)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sscape cleanup, fixes and check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:11:07 +0000 (05:11 -0700)]
[PATCH] sscape cleanup, fixes and check_region() removal

* general cleanup of probing code
* claim codec ports
* sizeof(char *) had been used instead of intended sizeof(char[4]); it even
  worked on x86...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] soundblaster check_region() removal
Alexander Viro [Fri, 27 Aug 2004 12:10:54 +0000 (05:10 -0700)]
[PATCH] soundblaster check_region() removal

moved request_region() to callers of sb_dsp_...()

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] casts are not lvalues
Alexander Viro [Fri, 27 Aug 2004 12:10:42 +0000 (05:10 -0700)]
[PATCH] casts are not lvalues

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoAdd some missing NULL->0 and __user annotiations
Dave Airlie [Sat, 28 Aug 2004 20:05:33 +0000 (06:05 +1000)]
Add some missing NULL->0 and __user annotiations

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years ago[CREDITS]: Update my entry.
David S. Miller [Fri, 27 Aug 2004 11:55:48 +0000 (04:55 -0700)]
[CREDITS]: Update my entry.

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Fri, 27 Aug 2004 11:48:38 +0000 (04:48 -0700)]
[SPARC64]: Update defconfig.

22 years ago[AMD7930]: Fix kcalloc() args.
David S. Miller [Fri, 27 Aug 2004 11:33:58 +0000 (04:33 -0700)]
[AMD7930]: Fix kcalloc() args.

22 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Fri, 27 Aug 2004 10:08:47 +0000 (03:08 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

22 years ago[MAINTAINERS]: Update my email contact info.
David S. Miller [Fri, 27 Aug 2004 09:19:23 +0000 (02:19 -0700)]
[MAINTAINERS]: Update my email contact info.

22 years ago[SPARC64]: Fix delay with HZ==1000.
David S. Miller [Fri, 27 Aug 2004 09:12:23 +0000 (02:12 -0700)]
[SPARC64]: Fix delay with HZ==1000.

When I moved sparc64 over to HZ==1000 this added some
problems to the udelay() handling.  Specifically, with
slower cpus we could now get underflows to zero for
things like udelay(1) due to the order of multiplies
and shifts.

Fix this, and move it out to arch/sparc64/lib/delay.c
so it is easier to tinker with this in the future and
also to optimize away one of the multiplies for the
constant delay case just like other platforms do.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] 2.6 ISDN CAPI: low-level drivers skb free fix
Armin Schindler [Fri, 27 Aug 2004 07:55:01 +0000 (00:55 -0700)]
[PATCH] 2.6 ISDN CAPI: low-level drivers skb free fix

CAPI skb freeing fix. On sending, the hardware/low-level
driver may free a skb on no error only. The application/core
side must take care otherwise.

Author: Carsten Paeth, Armin Schindler

22 years ago[PATCH] fix PA-RISC fork_idle() sweep
William Lee Irwin III [Fri, 27 Aug 2004 07:37:00 +0000 (00:37 -0700)]
[PATCH] fix PA-RISC fork_idle() sweep

Whether a brainfart or a mismerge, I inadvertently broke PA-RISC during
the fork_by_hand()/init_idle() consolidation.

The following patch repairs a compilebug/thinko pair, consisting of the
use of an undeclared variable cpunum, and not attempting fork_idle()
until after the check for IS_ERR(idle) reported by James Bottomley.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[UACCESS]: Fix typo in generic __get_user_unaligned().
David S. Miller [Fri, 27 Aug 2004 06:45:44 +0000 (23:45 -0700)]
[UACCESS]: Fix typo in generic __get_user_unaligned().

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge http://linux-sound.bkbits.net/linux-sound
Linus Torvalds [Fri, 27 Aug 2004 06:24:18 +0000 (23:24 -0700)]
Merge http://linux-sound.bkbits.net/linux-sound
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge suse.cz:/home/perex/bk/linux-sound/linux-2.5
Jaroslav Kysela [Fri, 27 Aug 2004 10:57:19 +0000 (12:57 +0200)]
Merge suse.cz:/home/perex/bk/linux-sound/linux-2.5
into suse.cz:/home/perex/bk/linux-sound/linux-sound

22 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Fri, 27 Aug 2004 04:31:43 +0000 (21:31 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://drm.bkbits.net/drm-2.6
Linus Torvalds [Fri, 27 Aug 2004 04:27:45 +0000 (21:27 -0700)]
Merge bk://drm.bkbits.net/drm-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoremove __NO_VERSION__ relic from the past...
Dave Airlie [Sat, 28 Aug 2004 06:41:32 +0000 (16:41 +1000)]
remove __NO_VERSION__ relic from the past...

22 years agoAdd new i915 driver from Tungsten Graphics Inc. This driver covers the i830
Dave Airlie [Sat, 28 Aug 2004 05:42:30 +0000 (15:42 +1000)]
Add new i915 driver from Tungsten Graphics Inc. This driver covers the i830
chipsets also, a new X 2D + 3D driver are needed to use this but they have
been integrated into at least the X.org tree at this point and I think the
XFree86 tree. There are probably a few cleanups necessary for this driver.

From: Keith Whitwell <keith@tungstengraphics.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years ago[PATCH] drm: optimise i8x0 accesses..
Dave Airlie [Fri, 27 Aug 2004 04:27:02 +0000 (21:27 -0700)]
[PATCH] drm: optimise i8x0 accesses..

This optimises the drm code to not do put_user() on memory the kernel
allocated and then mmap-installed to userspace, but instead makes it use
the kernel virtual address directly instead.

From: Arjan van de Ven <arjanv@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drm: missing bus_address assignment
Dave Airlie [Fri, 27 Aug 2004 04:24:08 +0000 (21:24 -0700)]
[PATCH] drm: missing bus_address assignment

Patch from Tom Arbuckle for missing bus_address

Signed-off-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: force_sigsegv name clash.
Martin Schwidefsky [Fri, 27 Aug 2004 03:49:37 +0000 (20:49 -0700)]
[PATCH] s390: force_sigsegv name clash.

The recent signal fix broke s390 because of a name clash.
Rename the s390 arch function to do_sigsegv.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] really uninline lmc_trace
Adrian Bunk [Fri, 27 Aug 2004 03:45:56 +0000 (20:45 -0700)]
[PATCH] really uninline lmc_trace

As part of some gcc 3.4 fixes, someone removed the inline from the
prototype of lmc_trace in lmc_debug.c, but the useless inline at the actual
function remained.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use Name cramfs in Kconfig Message
Rusty Russell [Fri, 27 Aug 2004 03:45:44 +0000 (20:45 -0700)]
[PATCH] Use Name cramfs in Kconfig Message

A senior kernel hacker couldn't find the cramfs option.  No wonder, the
message doesn't mention cramfs at all.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] copy_to_user checking in select.c
Andrew Morton [Fri, 27 Aug 2004 03:45:32 +0000 (20:45 -0700)]
[PATCH] copy_to_user checking in select.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] must_check copy_to_user()
Andrew Morton [Fri, 27 Aug 2004 03:45:21 +0000 (20:45 -0700)]
[PATCH] must_check copy_to_user()

Add __must_check tags to the x86 copy_*_user() functions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix x86_64 vs select.c namespace clash
Andrew Morton [Fri, 27 Aug 2004 03:45:07 +0000 (20:45 -0700)]
[PATCH] Fix x86_64 vs select.c namespace clash

fs/select.c:122:1: warning: "__IN" redefined
In file included from include/linux/timex.h:61,
                 from include/linux/sched.h:11,
                 from include/linux/module.h:10,
                 from fs/select.c:17:
include/asm/io.h:70:1: warning: this is the location of the previous definition
fs/select.c:123:1: warning: "__OUT" redefined
include/asm/io.h:60:1: warning: this is the location of the previous definition

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix hp100.c for pci_enable_device() changes
Bjorn Helgaas [Fri, 27 Aug 2004 03:44:56 +0000 (20:44 -0700)]
[PATCH] Fix hp100.c for pci_enable_device() changes

Don't look at pci_resource_start() before pci_enable_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] revert ioc3-eth.c pci_enable_device() changes
Bjorn Helgaas [Fri, 27 Aug 2004 03:44:42 +0000 (20:44 -0700)]
[PATCH] revert ioc3-eth.c pci_enable_device() changes

Revert addition of pci_enable_device().  It wasn't appropriate to this
device, apparently.

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] HVCS hotplug fixes
Ryan S. Arnold [Fri, 27 Aug 2004 03:44:30 +0000 (20:44 -0700)]
[PATCH] HVCS hotplug fixes

Here is an HVCS (drivers/char/hvcs.c) patch which fixes the hvcs driver
problems with hotplugged vty-server adapters.  The current driver handles
the adapter index assignment improperly so after a number of device
removals and insertions the driver could no longer map a tty->index to a
vty-server properly and tty_open() attempts would fail.  This patch solves
this problem by always assigning the lowest available index to the new
adapters and returning an index to the list when the adapter is removed.

changelog:
drivers/char/hvcs.c
===================
-Added hvcs_index_list to manage the lowest available index.

-Added four helper functions to manage the list, which include the
creation and destruction of the list, the get'ing of the lowest index,
and the returning of an index.

-Moved free_irq() outside of the hvcs_final_close() function in order to
get it out of the spinlock.

-Rearranged hvcs_close() to accomodate the previous change.

-Removed local CLC_LENGTH define and used HVCS_CLC_LENGTH from
arch/ppc64/hvcserver.h instead.

-Cleaned up some printks and did some house keeping on the changelog.

Documentation/powerpc/hvcs.txt
==============================
-Added information on sysfs 'index' attribute added in previous hvcs
patch.

-Added Q & A section on how to find the proper dev node for a newly
added adapter.

I think this is the last of the HVCS patches for a while, as all of my
oustanding issues have been dealt with.

Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] interrupt is enabled before it should be when kernel is booted
Yanmin Zhang [Fri, 27 Aug 2004 03:44:17 +0000 (20:44 -0700)]
[PATCH] interrupt is enabled before it should be when kernel is booted

There is a minor problem in function start_kernel.  start_kernel will
enable interrupt after calling profile_init.  However, before that,
function time_init on IA64 platform could enable interrupt.  See this call
sequence:

  start_kernel
  ->time_init
    ->ia64_init_itm
      ->register_time_interpolator
        ->write_seqlock_irq.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Yao Jun <junx.yao@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix typo in bw2.c
Tom 'spot' Callaway [Fri, 27 Aug 2004 03:44:05 +0000 (20:44 -0700)]
[PATCH] Fix typo in bw2.c

Patch to fix typo in bw2.c, added in 2.6.9-rc1.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Keep sparc32 config consistent
Tom 'spot' Callaway [Fri, 27 Aug 2004 03:43:52 +0000 (20:43 -0700)]
[PATCH] Keep sparc32 config consistent

This patch changes the name of the sparc32 Kconfig menu from "General
Setup" to "General Machine Setup", to match the changes committed to most
other arches in 2.6.9-rc1.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ftape support for x86_64
Christoph Hellwig [Fri, 27 Aug 2004 03:43:38 +0000 (20:43 -0700)]
[PATCH] ftape support for x86_64

We have this patch that adds ftape support for x86_64 and cleans up the
alpha support a little.  The comments look like Vojtech did the x86_64 part
and I guess the alpha bits are from Herbert Xu.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] WAITQUEUE_DEBUG cleanup
William Lee Irwin III [Fri, 27 Aug 2004 03:43:26 +0000 (20:43 -0700)]
[PATCH] WAITQUEUE_DEBUG cleanup

While trying out compiling of reiser4 on sparc64, ppc64, alpha, and ia64, I
discovered that WAITQUEUE_DEBUG is nowhere defined in 2.6.x, and various
compiler versions spew copious warnings at #if on it.  Convert
__SEMAPHORE_INITIALIZER() to C99 initializers while in the area.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix copying of unaligned data across user/kernel boundary
Arun Sharma [Fri, 27 Aug 2004 03:43:14 +0000 (20:43 -0700)]
[PATCH] Fix copying of unaligned data across user/kernel boundary

32 bit compatibility code sometimes needs to copy unaligned data across
kernel/user boundary and currently there is no architecture independent API
to do it.

(1) Introduce new APIs __{get,put}_user_unaligned. These APIs are
    necessary because the optimal way to copy unaligned data across
    kernel/user boundary is different on different architectures.
    Some architectures don't even care about alignment.
    On some __put_user is faster than __copy_to_user for small sizes.
(2) Optimize __{get,put}_user_unaligned for ia64, x86-64, s390, ppc64.
(3) Fix compat_filldir64() which is broken on big-endian machines

Thanks to Arnd Bergmann <arnd@arndb.de> for his help.

Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dvb pci_enable_device() fix
Bjorn Helgaas [Fri, 27 Aug 2004 03:43:02 +0000 (20:43 -0700)]
[PATCH] dvb pci_enable_device() fix

Call pci_enable_device() before looking at pci_dev.  Also, call
pci_disable_device() when releasing the 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] make oom killer points unsigned long
Tim Schmielau [Fri, 27 Aug 2004 03:42:51 +0000 (20:42 -0700)]
[PATCH] make oom killer points unsigned long

It seems a little unsafe to me to have oom killer badness points of type
int, when all the underlying objects are unsigned long.

I can't immediately think of a case where this matters much, but e.g.  a
long-running job or daemon on a 64 bit machine might lose it's bonus
because of that.

Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifdef cleanups in drivers/net
Valdis Kletnieks [Fri, 27 Aug 2004 03:42:39 +0000 (20:42 -0700)]
[PATCH] #ifdef cleanups in drivers/net

Here's the last of them for 2.6.9-rc1 - two more #if/#ifdef cleanups.

Signed-off-by: <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifdef cleanup for PPC
Valdis Kletnieks [Fri, 27 Aug 2004 03:42:27 +0000 (20:42 -0700)]
[PATCH] #ifdef cleanup for PPC

Another few #if/#ifdef cleanups, this time for the PPC architecture.

Signed-off-by: <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifdef cleanup for cris port
Valdis Kletnieks [Fri, 27 Aug 2004 03:42:14 +0000 (20:42 -0700)]
[PATCH] #ifdef cleanup for cris port

Another small #if/#ifdef cleanup, to make things safer for compiling with
-Wundef

Signed-off-by: <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifdef cleanup for sh64
Valdis Kletnieks [Fri, 27 Aug 2004 03:42:02 +0000 (20:42 -0700)]
[PATCH] #ifdef cleanup for sh64

Another small cleanup patch for #if/#ifdef usage.

Signed-off-by: <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifdef fixes for drivers/isdn/hifax/*
Valdis Kletnieks [Fri, 27 Aug 2004 03:41:50 +0000 (20:41 -0700)]
[PATCH] #ifdef fixes for drivers/isdn/hifax/*

This patch changes a bunch of '#if CONFIG_PCI' to '#ifdef' instead,
to make the kernel source cleaner for compiling with 'gcc -Wundef'.

Signed-off-by: Karsten keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: qeth network driver
Steffen Thoss [Fri, 27 Aug 2004 03:41:38 +0000 (20:41 -0700)]
[PATCH] s390: qeth network driver

qeth network driver change:
 - Make qeth devices which are present but not up addressable by
   snmp ioctls.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: sclp driver changes
Peter Oberparleiter [Fri, 27 Aug 2004 03:41:26 +0000 (20:41 -0700)]
[PATCH] s390: sclp driver changes

sclp driver changes:
 - Add reboot notifier to reset the sclp send/receive masks on shutdown.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: common i/o layer
Steffen Thoss [Fri, 27 Aug 2004 03:41:10 +0000 (20:41 -0700)]
[PATCH] s390: common i/o layer

common i/o layer change:
 - Correct check in qdio_stop_polling to avoid loosing initiative on the
   qdio inbound queue.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: lcs network driver
Frank Pavlic [Fri, 27 Aug 2004 03:37:58 +0000 (20:37 -0700)]
[PATCH] s390: lcs network driver

lcs network driver changes:
 - Allocate the reply structure instead of taking it from the stack.
 - Use del_timer_sync instead of del_timer.
 - Clean up helper threads creation/shutdown.
 - Split lcs_register_mc_addresses to make it readable again.
 - Free multicast list entries when device is going down.
 - Retransmit multicast list in device recovery.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] parport: NetMOS 9805 interface
Thomas Richter [Fri, 27 Aug 2004 03:37:46 +0000 (20:37 -0700)]
[PATCH] parport: NetMOS 9805 interface

Add support for netmos devices to the parallel port driver.

NetMOS 9805 support is already in the kernel, this patch adds the support for
the missing 9735,9855,9755 and 9715 chips.

And another remark: The 9735 and 9835 seem to be chips with serial *and*
parallel interfaces, so I suppose they are already claimed somewhere in the
serial driver.  I don't know whether this causes any problems.  I'm sorry that
I can't test, I've only a 9805 here.  Any idea how these "dual" chips have to
be handled by the kernel?

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] LANANA: devices.txt update
Torben Mathiasen [Fri, 27 Aug 2004 03:37:36 +0000 (20:37 -0700)]
[PATCH] LANANA: devices.txt update

Patch brings devices.txt up-to-date with LANANA.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] LANANA: maintainer update
Torben Mathiasen [Fri, 27 Aug 2004 03:37:24 +0000 (20:37 -0700)]
[PATCH] LANANA: maintainer update

I took over LANANA maintainership from John Cagle.  Patch updates
MAINTAINERS accordingly.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sane mlock_limit
Andrew Morton [Fri, 27 Aug 2004 03:37:13 +0000 (20:37 -0700)]
[PATCH] sane mlock_limit

As David M-T points out, the default per-user mlock limit should be at least a
single page.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Unaccount VM_DONTCOPY vmas properly
William Lee Irwin III [Fri, 27 Aug 2004 03:37:01 +0000 (20:37 -0700)]
[PATCH] Unaccount VM_DONTCOPY vmas properly

Unaccount VM_DONTCOPY vmas properly; the child inherits the whole of the
parent's virtual accounting from the memcpy() in copy_mm(), but the
VM_DONTCOPY check here is where a decision is made for the child not to
inherit the vmas corresponding to some accounted memory usages.  Hence,
unaccount them when skipping over them here.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] /proc/pid/statm accounting fixes
William Lee Irwin III [Fri, 27 Aug 2004 03:36:49 +0000 (20:36 -0700)]
[PATCH] /proc/pid/statm accounting fixes

Account reserved memory properly as per acahalan's speecified semantics.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] speed up /proc/pid/statm for !CONFIG_PROC_FS
William Lee Irwin III [Fri, 27 Aug 2004 03:36:38 +0000 (20:36 -0700)]
[PATCH] speed up /proc/pid/statm for !CONFIG_PROC_FS

Remove the accounting overhead when CONFIG_PROC_FS is not defined.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix text reporting in O(1) proc_pid_statm()
William Lee Irwin III [Fri, 27 Aug 2004 03:36:27 +0000 (20:36 -0700)]
[PATCH] fix text reporting in O(1) proc_pid_statm()

Some kind of brainfart happened here, though it's not visible on the
default display from top(1) etc.  This patch fixes up the gibberish I
mistakenly put down for text with the proper text size, and subtracts it
from data as per the O(vmas) code beforehand.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] O(1) proc_pid_statm()
William Lee Irwin III [Fri, 27 Aug 2004 03:36:15 +0000 (20:36 -0700)]
[PATCH] O(1) proc_pid_statm()

Merely removing down_read(&mm->mmap_sem) from task_vsize() is too
half-assed to let stand. The following patch removes the vma iteration
as well as the down_read(&mm->mmap_sem) from both task_mem() and
task_statm() and callers for the CONFIG_MMU=y case in favor of
accounting the various stats reported at the times of vma creation,
destruction, and modification. Unlike the 2.4.x patches of the same
name, this has no per-pte-modification overhead whatsoever.

This patch quashes end user complaints of top(1) being slow as well as
kernel hacker complaints of per-pte accounting overhead simultaneously.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] task_vsize() locking cleanup
William Lee Irwin III [Fri, 27 Aug 2004 03:36:03 +0000 (20:36 -0700)]
[PATCH] task_vsize() locking cleanup

task_vsize() doesn't need mm->mmap_sem for the CONFIG_MMU case; the
semaphore doesn't prevent mm->total_vm from going stale or getting
inconsistent with other numbers regardless.  Also, KSTK_EIP() and
KSTK_ESP() don't want or need protection from mm->mmap_sem either.  So this
pushes mm->mmap_sem to task_vsize() in the CONFIG_MMU=n task_vsize().

Also, hoist the prototype of task_vsize() into proc_fs.h

The net result of this is a small speedup of procps for CONFIG_MMU.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] include asm/page.h for virt_to_page()
Dave Hansen [Fri, 27 Aug 2004 03:35:51 +0000 (20:35 -0700)]
[PATCH] include asm/page.h for virt_to_page()

asm/page.h seems to be the accepted place to declare virt_to_page() on a vast
majority of architectures.  This patch makes sure that a few files which use
that function also directly include the header.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] don't align virt_to_page() args
Dave Hansen [Fri, 27 Aug 2004 03:35:39 +0000 (20:35 -0700)]
[PATCH] don't align virt_to_page() args

__pa() is always be consistent inside of a single page.  The next thing
virt_to_page() does after that is shift down the address, killing the bits
that __change_page_attr() just masked off.

Remove the superfluous masking.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] vmalloc_fault() cleanup
Dave Hansen [Fri, 27 Aug 2004 03:35:26 +0000 (20:35 -0700)]
[PATCH] vmalloc_fault() cleanup

Store the physical pgd address in a different variable than the virtual
address.

There's no real reason to only use 1 variable here, other than saving a
line of code.  But, the types really are different and we might as well
just spell that out explicitly.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] call virt_to_page() with void*, not UL
Dave Hansen [Fri, 27 Aug 2004 03:35:14 +0000 (20:35 -0700)]
[PATCH] call virt_to_page() with void*, not UL

I'm sure there's a good reason for these functions to take virtual addresses
as unsigned longs, so suppress the warnings and cast them to the proper types
before calling the virt/phys conversion functions

A perfectly acceptable alternative would be to go and change free_pages() to
stop taking unsigned longs for virtual addresses, but this has a much smaller
impact.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cast PAGE_OFFSET math to void* in early printk
Dave Hansen [Fri, 27 Aug 2004 03:35:03 +0000 (20:35 -0700)]
[PATCH] cast PAGE_OFFSET math to void* in early printk

__pa() should take a void*.  This adds the proper cast.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce casting in sysenter.c
Dave Hansen [Fri, 27 Aug 2004 03:34:51 +0000 (20:34 -0700)]
[PATCH] reduce casting in sysenter.c

Ran across this because it's another place where an unsigned long is passed
directly to __pa().  Making the "page" variable a void* seems a bit more
natural than an unsigned long and reduces the net number of casts by 1.
Without it, we probably need another (void *) cast in the __pa() call.

For more explanation as to why this was probably done originally, see this
post: http://marc.theaimsgroup.com/?l=linux-mm&m=109155379124628&w=2

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Split timer resources
Pierre Ossman [Fri, 27 Aug 2004 03:34:40 +0000 (20:34 -0700)]
[PATCH] Split timer resources

The kernel currently allocates the range 0x40-0x5f for timer calls.  This
causes conflicts with other hardware using these ports (In my case a
Winbond W83L519D SD/MMC card reader).  This patch splits the resource into
the ports actually needed.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] improve OProfile on many-way systems
John Levon [Fri, 27 Aug 2004 03:34:28 +0000 (20:34 -0700)]
[PATCH] improve OProfile on many-way systems

Anton prompted me to get this patch merged.  It changes the core buffer
sync algorithm of OProfile to avoid global locks wherever possible.  Anton
tested an earlier version of this patch with some success.  I've lightly
tested this applied against 2.6.8.1-mm3 on my two-way machine.

The changes also have the happy side-effect of losing less samples after
munmap operations, and removing the blind spot of tasks exiting inside the
kernel.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] copy_mount_options size fix
Andrew Morton [Fri, 27 Aug 2004 03:34:16 +0000 (20:34 -0700)]
[PATCH] copy_mount_options size fix

davem says that copy_mount_options is failing in obscure ways if the
architecture's copy_from_user() doesn't return an exact count of the number of
uncopied bytes.

Fixing that up in each architecture is a pain - it involves falling back to
byte-at-a-time copies.

It's simple to open-code this in namespace.c.  If we find other places in the
kernel which care about this we can promote this to a global function.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix MT reparenting when thread group leader dies
Roland McGrath [Fri, 27 Aug 2004 03:34:04 +0000 (20:34 -0700)]
[PATCH] fix MT reparenting when thread group leader dies

When the initial thread in a multi-threaded program dies (the thread group
leader), its child processes are wrongly orphaned, and thereafter when
other threads die their child processes are also orphaned even though live
threads remain in the parent process that can call wait.  I have a small
(under 100 lines), POSIX-compliant test program that demonstrates this
using -lpthread (NPTL) if anyone is interested in seeing it.

The bug is that forget_original_parent moves children to the dead parent's
group leader if it's alive, but if not it orphans them.  I've changed it so
it instead reparents children to any other live thread in the dead parent's
group (not even preferring the group leader).  Children go to init only if
there are no live threads in the parent's group at all.  These are the
correct semantics for fork children of POSIX threads.

The second part of the change is to do the CLONE_PARENT behavior always for
CLONE_THREAD, i.e.  make sure that each new thread's parent link points to
the real parent of the process and never another thread in its own group.
Without this, when the group leader dies leaving a sole live thread in the
group, forget_original_parent will try to reparent that thread to itself
because it's a child of the dying group leader.  Rather handling this case
specially to reparent to the group leader's parent instead, it's more
efficient just to make sure that noone ever has a parent link to inside his
own thread group.  Now the reparenting work never needs to be done for
threads created in the same group when their creator thread dies.  The only
change from losing the who-created-whom information is when you look at
"PPid:" in /proc/PID/task/TID/status.  For purposes of all direct system
calls, it was already as if CLONE_THREAD threads had the parent of the
group leader.  (POSIX provides no way to keep track of which thread created
which other thread with pthread_create.)

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mostly remove module_parm()
Rusty Russell [Fri, 27 Aug 2004 03:33:53 +0000 (20:33 -0700)]
[PATCH] mostly remove module_parm()

MODULE_PARM() was marked obsolete.  Remove it from everything except
drivers/ and arch/.

Naturally, such a widespread change may introduce bugs for some of the
non-trivial cases, and where in doubt I used "0" as permissions arg (ie.
won't appear in sysfs).  Individual authors should think about whether that
would be useful.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dnotify + autofs may create signal/restart syscall loop
Jeff Mahoney [Fri, 27 Aug 2004 03:33:41 +0000 (20:33 -0700)]
[PATCH] dnotify + autofs may create signal/restart syscall loop

I saw a recent bug report that showed when a process set up a dnotify against
the autofs root and then attempted an access(2) call inside the autofs
namespace on a mount that would fail, it would create a signal/restart loop.

The cause is that the autofs code checks to see if any signals are pending
after it waits on a response from the autofs daemon.  If it finds any, it
assumes that autofs_wait was interrupted, and that it should return
-ERESTARTNOINTR.  The problem with this is that a signal_pending(current)
check will return true if *any* signals were received, not just if a signal
that interrupted the wait was received.  autofs_wait explicitly blocks all
signals except for SIGKILL, SIGQUIT, and SIGINT before calling
interruptible_sleep_on.

The effect is that if a dnotify is set against the autofs root, when the
autofs daemon creates the directory, a dnotify event will be sent to the
originating process.  Since the code in autofs_root_lookup doesn't check to
see what signals are actually pending, it bails early, telling the caller to
try again.  The loop goes on forever until interrupted via one of the actual
interrupting signals.

The following patch makes both autofs_root_lookup and autofs4_root_lookup
verify that one of its defined "shutdown" signals are pending before bailing
out early.  Any other signal should be delivered later, as expected.  It
doesn't matter if the signal occured outside of the sleep in autofs_wait.  The
calling process will either go away or try again.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] tmpfs atomicity fix
Hugh Dickins [Fri, 27 Aug 2004 03:33:30 +0000 (20:33 -0700)]
[PATCH] tmpfs atomicity fix

tmpfs must use __copy_from_user_inatomic now, to avoid might_sleep warning,
when knowingly using __copy_from_user with an atomic kmap.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add a few might_sleep() checks
Ingo Molnar [Fri, 27 Aug 2004 03:33:18 +0000 (20:33 -0700)]
[PATCH] Add a few might_sleep() checks

Add a whole bunch more might_sleep() checks.  We also enable might_sleep()
checking in copy_*_user().  This was non-trivial because of the "copy_*_user()
in atomic regions" trick would generate false positives.  Fix that up by
adding a new __copy_*_user_inatomic(), which avoids the might_sleep() check.

Only i386 is supported in this patch.

With: Arjan van de Ven <arjanv@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: clean up unused macro
David Gibson [Fri, 27 Aug 2004 03:33:05 +0000 (20:33 -0700)]
[PATCH] ppc64: clean up unused macro

After the recent SLB and STAB cleanups, the ppc64 KERNEL_CONTEXT() macro is
no longer used anywhere.  This patch removes it.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: refactor common Book-E exception handling macros
Kumar Gala [Fri, 27 Aug 2004 03:32:53 +0000 (20:32 -0700)]
[PATCH] ppc32: refactor common Book-E exception handling macros

Refefactor common Book-E exception handling macros into a single file to
reduce code duplication.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce size of struct inode on 64bit
Anton Blanchard [Fri, 27 Aug 2004 03:32:41 +0000 (20:32 -0700)]
[PATCH] reduce size of struct inode on 64bit

Reduce the size of struct inode on 64bit architectures by reducing padding.
This assumes spinlocks are 32bit or less which is the case on most
architectures.

This reduces inode structs by 24 bytes on ppc64, and on ext2 increases the
number of inodes in a 4kB slab from 5 to 6.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] [un]register_ioctl32_conversion() stubs
Andrew Morton [Fri, 27 Aug 2004 03:32:29 +0000 (20:32 -0700)]
[PATCH] [un]register_ioctl32_conversion() stubs

The megaraid driver is calling these, but they don't exist if !CONFIG_COMPAT.
Add the necessary stubs, and clean a few things up.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove iseries profiling
William Lee Irwin III [Fri, 27 Aug 2004 03:32:18 +0000 (20:32 -0700)]
[PATCH] ppc64: remove iseries profiling

From: Anton Blanchard <anton@samba.org>

- Remove iseries specific profiling, there were no complaints when I
  suggested removal on the linuxppc64 list a few weeks ago.

- Also remove another instance of that pesky abs() function.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make prof_buffer atomic_t
William Lee Irwin III [Fri, 27 Aug 2004 03:32:06 +0000 (20:32 -0700)]
[PATCH] make prof_buffer atomic_t

Convert prof_buffer to an array of atomic_t instead of sometimes atomic_t,
sometimes unsigned int.  Also, bootmem rounds up internally, so blow away some
crap code there.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make private profile state static
William Lee Irwin III [Fri, 27 Aug 2004 03:31:54 +0000 (20:31 -0700)]
[PATCH] make private profile state static

Make the various bits of state no longer used anywhere else static to
kernel/profile.c

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] move profile_operations
William Lee Irwin III [Fri, 27 Aug 2004 03:31:44 +0000 (20:31 -0700)]
[PATCH] move profile_operations

proc_misc.c is a trainwreck.  Move the file_operations for /proc/profile into
kernel/profile.c and call the profiling setup via initcall.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] consolidate hit count increments in profile_tick()
William Lee Irwin III [Fri, 27 Aug 2004 03:31:33 +0000 (20:31 -0700)]
[PATCH] consolidate hit count increments in profile_tick()

With prof_cpu_mask and profile_pc() in hand, the core is now able to perform
all the profile accounting work on behalf of arches.  Consolidate the profile
accounting and convert all arches to call the core function.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>