]> git.hungrycats.org Git - linux/log
linux
20 years ago[PATCH] x86_64: Move memset_io out of line to avoid warnings.
Andi Kleen [Tue, 11 Jan 2005 09:48:40 +0000 (01:48 -0800)]
[PATCH] x86_64: Move memset_io out of line to avoid warnings.

Move memset_io out of line to avoid warnings.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] i386: Export phys_proc_id.
Andi Kleen [Tue, 11 Jan 2005 09:48:27 +0000 (01:48 -0800)]
[PATCH] i386: Export phys_proc_id.

This is needed for the powernow k8 driver to manage AMD dual core systems.
(see explanation in previous CMP patch for more details)

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: <mark.langsdorf@amd.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] i386: Count both multi cores and SMP siblings in /proc/cpuinfo siblings.
Andi Kleen [Tue, 11 Jan 2005 09:48:14 +0000 (01:48 -0800)]
[PATCH] i386: Count both multi cores and SMP siblings in   /proc/cpuinfo siblings.

Count both multi cores and SMP siblings in /proc/cpuinfo siblings.

This avoids breaking user space licensing managers who license by CPU on dual
core systems.

Port of the equivalent code on x86-64.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] i386: AMD dual core support for i386
Andi Kleen [Tue, 11 Jan 2005 09:48:01 +0000 (01:48 -0800)]
[PATCH] i386: AMD dual core support for i386

AMD dual core support for i386

Run HT initialization on AMD dual core CPUs on i386.  They fake being HT CPUs.
 This patch makes the HT detection run on AMD CPUs too.  I moved the HT
detection code into a common file from intel.c for that.

It would be actually better to run HT detection always on all CPUs but this
would need a second callback afterwards to AMD code, which I avoided for now.

It adds a cpuinfo->x86_num_cores field.

This sets up the phys_proc_id[] array.  This overloads this array with HT, but
when smp_num_siblings is 1

It is currently only used for /proc/cpuinfo printing.  The reason we want to
behave this like SMT is that there are some license managers in user space
that license according to number of physical CPUs, and when they handle HT
they should handle CMP with this hack too.  Another reason we need this is
that the powernow k8 driver needs this information to properly manage dual
core CPUs.

When there are ever dual core HT CPUs this will need small changes in
smpboot.c.  I didn't do this for now to keep the patch simple.

Then we set smp_num_siblings to 1 on these systems again to prevent the
scheduler from setting up HT scheduling (which is not a very good match for
dual core).

This is a port of the CMP support code from x86-64 (minus the NUMA bits)

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] i386: Port missing cpuid bits from x86-64 to i386
Andi Kleen [Tue, 11 Jan 2005 09:47:47 +0000 (01:47 -0800)]
[PATCH] i386: Port missing cpuid bits from x86-64 to i386

Port missing cpuid bits from x86-64 to i386

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Fix some gcc 4 warnings in arch/x86_64
Andi Kleen [Tue, 11 Jan 2005 09:47:35 +0000 (01:47 -0800)]
[PATCH] x86_64: Fix some gcc 4 warnings in arch/x86_64

Fix some gcc 4 warnings in arch/x86_64

There are tons more outside though.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Fix sparse warnings
Andi Kleen [Tue, 11 Jan 2005 09:47:21 +0000 (01:47 -0800)]
[PATCH] x86_64: Fix sparse warnings

Fix sparse warnings

    warning: cast removes address space of expression

for uses of put_user() on x86_64 caused by doing __m(addr) in
__put_user_asm() with addr a __user pointer.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Remove old-checksum.c
Andi Kleen [Tue, 11 Jan 2005 09:47:08 +0000 (01:47 -0800)]
[PATCH] x86_64: Remove old-checksum.c

Remove old-checksum.c

Remove nowhere referenced file. (egrep "filename\." didn't find anything)

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Update defconfig
Andi Kleen [Tue, 11 Jan 2005 09:46:54 +0000 (01:46 -0800)]
[PATCH] x86_64: Update defconfig

Update x86-64 defconfig

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Updates for x86-64 boot-options.txt
Andi Kleen [Tue, 11 Jan 2005 09:46:41 +0000 (01:46 -0800)]
[PATCH] x86_64: Updates for x86-64 boot-options.txt

Updates for x86-64 boot-options.txt

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Hack to disable clustered mode on AMD systems
Andi Kleen [Tue, 11 Jan 2005 09:46:29 +0000 (01:46 -0800)]
[PATCH] x86_64: Hack to disable clustered mode on AMD systems

Hack to disable clustered mode on AMD systems

Make sure AMD big flat apic mode is not confused with clustered APIC
mode. Ugly hack, but no better way found.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Work around another aperture BIOS bug on Opteron
Andi Kleen [Tue, 11 Jan 2005 09:46:10 +0000 (01:46 -0800)]
[PATCH] x86_64: Work around another aperture BIOS bug on Opteron

Work around another aperture BIOS bug on Opteron

Based on debugging&code from Vincent ETIENNE <ve@vetienne.net>

>>
I have some problem with AGP initialization with my board : IWILL DK8N (Bi
opteron chipset NFORCE3 ). I use kernel 2.6.10-rc3-mm1, but i have try with

IOMMU reports a 128MB aperture for CPU0 ( that's the value i used in my bios)
at F0000000 but only 32MB at 4000000 for CPU1
<<

This patch checks for this condition and fixes the other CPUs up.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] APIC/LAPIC hanging problems on nForce2 system
Prakash Cheemplavam [Tue, 11 Jan 2005 09:45:56 +0000 (01:45 -0800)]
[PATCH] APIC/LAPIC hanging problems on nForce2 system

current state:
Systems with Nforce2 could freeze on high disk i/o activity in APIC mode
when CPU Disconnect is enabled. If bios doesn't fix this, current kernel
fix changes the registers according to follwing table:

      * Chip  Old value   New value
      * C17   0x1F0FFF01  0x1F01FF01
      * C18D  0x9F0FFF01  0x9F01FF01

But this is only done, if cpu disconnect has been enabled in bios.

why change this:
If CPU disconnect is not enabled in bios, and bios is broken (some
manufacturers like Abit don't care about their customers and even the
latest bios doesn't fix this; I have an Abit mainboard), the kernel
doesn't apply the fix, so if cpu disconnect is enabled at a later stage
(in userspace), the system will be unstable and most likely freeze.

new behaviour:
The fix is now applied regardless of cpu disconnect being enabled at
boot time, or not. As you only have to change byte 3 to 0x01, reading
out chipset version isn't needed, so the patch simplifies the fix. Now
turning cpu disconnect on, at later stage won't break the system, and if
it was already enabled, it gets fixed, as the old version did.

Signed-off-by: Prakash Punnoor <prakashp@arcor.de>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] kprobes: dont steal interrupts from vm86
Prasanna S. Panchamukhi [Tue, 11 Jan 2005 09:45:42 +0000 (01:45 -0800)]
[PATCH] kprobes: dont steal interrupts from vm86

The address used by the kprobes handler was not correct if the application
was using LDT entries for code segment.  This patch fixes the above problem
by calculating the address using base address of the current code segment.
Also this patch removes the inline prefix of kprobe_handler() .

Signed-off-by: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] improved wait_8254_wraparound()
Herbert Pötzl [Tue, 11 Jan 2005 09:45:29 +0000 (01:45 -0800)]
[PATCH] improved wait_8254_wraparound()

hopefully 'better' fix for broken Intel Mercury/Neptune in
wait_8254_wraparound() ...

Rationale:

changing HZ to higher values (like 5k,10k or 20k) will hang machines using
wait_8254_wraparound() indefinitely, because a suboptimal workaround for
buggy Intel Mercury/Neptune chipsets is in place.

this was tested on several machines, unfortunately none with a broken Intel
Mercury/Neptune chipset, and it works fine with various HZ values ...

Signed-off-by: Herbert Pötzl <herbert@13thfloor.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: reduce paca[] where possible
Anton Blanchard [Tue, 11 Jan 2005 09:45:17 +0000 (01:45 -0800)]
[PATCH] ppc64: reduce paca[] where possible

On UP builds we include lots of spare pacas.  Lets get rid of them and save
some space.  Also catch the small SMP case.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: semicolon in rtasd.c
Anton Blanchard [Tue, 11 Jan 2005 09:45:04 +0000 (01:45 -0800)]
[PATCH] ppc64: semicolon in rtasd.c

From: Domen Puncer <domen@coderock.org>

semicolon in rtasd.c

Signed-off-by: Domen Puncer <domen@coderock.org>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: Make NUMA code handle unexpected layouts
Anton Blanchard [Tue, 11 Jan 2005 09:44:50 +0000 (01:44 -0800)]
[PATCH] ppc64: Make NUMA code handle unexpected layouts

From: Nathan Lynch <nathanl@austin.ibm.com>

Ran into this on a 4GB partition - all but about ~300MB was thrown away.

It works for me, but I've not tested on firmware without the bug.

Fall back to non-numa setup upon discovering unexpected memory layout
as presented by firmware, instead of throwing away regions.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: Fix rtas_set_indicator(9005)
Anton Blanchard [Tue, 11 Jan 2005 09:44:36 +0000 (01:44 -0800)]
[PATCH] ppc64: Fix rtas_set_indicator(9005)

It turns out we were passing in the wrong thing to the rtas_set_indicator
call.  Luckily we got away with it because it looks like firmware does not
check arguments and just inserts or removes the current cpu from the global
server group.

Fix it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: interrupt code cleanup
Anton Blanchard [Tue, 11 Jan 2005 09:44:23 +0000 (01:44 -0800)]
[PATCH] ppc64: interrupt code cleanup

- Move some function prototypes into header files.
- Remove late_setup_cpu, put the set indicator and vpa init into xics
  probe instead
- rtas-proc was doing weird stuff with the 9005 indicator. Get rid of
  it.
- Dont open code the set_indicator call in the hotplug code

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: Remove flush_instruction_cache
Anton Blanchard [Tue, 11 Jan 2005 09:44:09 +0000 (01:44 -0800)]
[PATCH] ppc64: Remove flush_instruction_cache

Remove flush_instruction_cache, we cant touch HID bits on LPAR machines.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: PCI cleanup
Anton Blanchard [Tue, 11 Jan 2005 09:43:55 +0000 (01:43 -0800)]
[PATCH] ppc64: PCI cleanup

- remove pci_fix_bus_sysdata. We required it for the old pci dma
  subsystem, but now it is useless.
- remove PCI_GET_PHB_PTR and use pci_bus_to_host instead
- remove pci_find_hose_for_OF_device
- remove some unused fields in struct pci_controller
- remove pci_device_loc stale prototype
- remove an old mask of pci bus number that was left around from the pre
  PCI domains days

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: xtime <-> gettimeofday can get out of sync
Anton Blanchard [Tue, 11 Jan 2005 09:43:41 +0000 (01:43 -0800)]
[PATCH] ppc64: xtime <-> gettimeofday can get out of sync

I've noticed a problem where xtime and gettimeofday could get out of sync if
interrupts are disabled for too long (eg long kernel code paths or dropping
into the debugger for a while).

We correctly replay lost jiffies but in that loop time_sync_xtime syncs the
intermediate values of xtime up with the current value of gettimeofday.  So
xtime jumps by a bunch and from then on it is ahead of gettimeofday and we
never resync the two.  I guess this is to avoid xtime going backwards.

The patch below creates a __do_gettimeofday where you can pass in a tb value
and sync the intermediate values of xtime properly.

Note that the time_sync_xtime check only stops the seconds from going
backwards, the ns component still could couldnt it?  Considering this is hard
to get right, should we switch to the time interpolator stuff?  The only
problem there is it might be trouble for systemcfg (which exports stuff to do
userspace gettimeofday).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: make xmon print BUG() warnings
Anton Blanchard [Tue, 11 Jan 2005 09:43:28 +0000 (01:43 -0800)]
[PATCH] ppc64: make xmon print BUG() warnings

I've had to explain to a number of people that a 0x700 exception is often a
BUG().  Make this crystal clear by printing the BUG information in the xmon
exception printout.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: fix xmon longjmp handling
Anton Blanchard [Tue, 11 Jan 2005 09:43:15 +0000 (01:43 -0800)]
[PATCH] ppc64: fix xmon longjmp handling

It turns out gcc decides to allocate a stack frame in the current xmon setjmp
function.  This means the stack linkage we save away is destroyed when
returning from it and its just a matter of time before another function stomps
on it.

This should fix the problem Linas reported this week.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] : ppc64: enhance oops printing
Anton Blanchard [Tue, 11 Jan 2005 09:42:42 +0000 (01:42 -0800)]
[PATCH] : ppc64: enhance oops printing

Here are some changes to the oops printout, stuff that would have been
useful when I was chasing various bugs.

- print out instructions around the fail (3/4 before 1/4 after).
- print out CTR and CR registers, make some space by cutting down XER
  (its only 32bit)
- always print the DAR and DSISR, its sometimes useful
- print_modules() like x86

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: Fix NUMA build
Anton Blanchard [Tue, 11 Jan 2005 09:42:29 +0000 (01:42 -0800)]
[PATCH] ppc64: Fix NUMA build

We were missing an include of the new nodemask.h and NUMA enabled builds
broke.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: kprobes breaks BUG() handling
Anton Blanchard [Tue, 11 Jan 2005 09:42:13 +0000 (01:42 -0800)]
[PATCH] ppc64: kprobes breaks BUG() handling

I was running some tests and noticed BUG() handling wasnt working as expected.
 The kprobes code has some code to check for breakpoint removal races and only
checks for one opcode.  It turns out there are many forms of the breakpoint
instruction, comparing against one is not good enough.

For the momemt remove the code in question so BUG()s work again and we can
discuss a better solution (I thought kprobes was emulating instructions or
running them out of line).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc64: Move hotplug cpu functions to smp_ops
Zwane Mwaikambo [Tue, 11 Jan 2005 09:42:00 +0000 (01:42 -0800)]
[PATCH] ppc64: Move hotplug cpu functions to smp_ops

This should allow for easier adding of hotplug cpu support for other PPC64
subarchs.  The patch is untested but does compile with and without hotplug
cpu on pSeries and G5 configs.  What can get slightly confusing is the fact
that both ppc_md and smp_ops have cpu_die members.

Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc; include missing header
Thomas Gleixner [Tue, 11 Jan 2005 09:41:47 +0000 (01:41 -0800)]
[PATCH] ppc; include missing header

Include missing header to avoid implicit function declaration warnings

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc: remove duplicate define
Thomas Gleixner [Tue, 11 Jan 2005 09:41:32 +0000 (01:41 -0800)]
[PATCH] ppc: remove duplicate define

The MMCR0_PMXE is already defined in reg.h, so no need to redefine it here.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ppc: fix idle with interrupts disabled
Thomas Gleixner [Tue, 11 Jan 2005 09:41:19 +0000 (01:41 -0800)]
[PATCH] ppc: fix idle with interrupts disabled

The idle-thread-preemption-fix.patch in mm1/2 leads to a stalled box on PPC
machines which do not provide a powersave function and therefor poll the
idle loop with interrupts disabled.  The patch reenables interrupts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 4level swapoff hang fix
Hugh Dickins [Tue, 11 Jan 2005 09:41:06 +0000 (01:41 -0800)]
[PATCH] 4level swapoff hang fix

The 4level mods have caused 2level swapoff to miss entries and hang.
There's probably a one-line fix for that, but the error is really caused
by previous awkwardness - each mask applied on two levels, an "address"
that's an offset plus an "offset" that's an address.  Simplify the four
levels to behave in the same address/next/end way and the bug vanishes.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cputime: microsecond based cputime for s390
Martin Schwidefsky [Tue, 11 Jan 2005 09:40:53 +0000 (01:40 -0800)]
[PATCH] cputime: microsecond based cputime for s390

This patch adds the architecture magic to replace the jiffies based cputime
with microsecond based cputime and it adds code to calculate involuntary
wait time.  With this patch the numbers reported by top and ps when running
on LPAR or z/VM are finally not junk anymore.

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>
20 years ago[PATCH] cputime: introduce cputime
Martin Schwidefsky [Tue, 11 Jan 2005 09:40:38 +0000 (01:40 -0800)]
[PATCH] cputime: introduce cputime

This patch introduces the concept of (virtual) cputime.  Each architecture
can define its method to measure cputime.  The main idea is to define a
cputime_t type and a set of operations on it (see asm-generic/cputime.h).
Then use the type for utime, stime, cutime, cstime, it_virt_value,
it_virt_incr, it_prof_value and it_prof_incr and use the cputime operations
for each access to these variables.  The default implementation is jiffies
based and the effect of this patch for architectures which use the default
implementation should be neglectible.

There is a second type cputime64_t which is necessary for the kernel_stat
cpu statistics.  The default cputime_t is 32 bit and based on HZ, this will
overflow after 49.7 days.  This is not enough for kernel_stat (ihmo not
enough for a processes too), so it is necessary to have a 64 bit type.

The third thing that gets introduced by this patch is an additional field
for the /proc/stat interface: cpu steal time.  An architecture can account
cpu steal time by calls to the account_stealtime function.  The cpu which
backs a virtual processor doesn't spent all of its time for the virtual
cpu.  To get meaningful cpu usage numbers this involuntary wait time needs
to be accounted and exported to user space.

From: Hugh Dickins <hugh@veritas.com>

The p->signal check in account_system_time is insufficient.  If the timer
interrupt hits near the end of exit_notify, after EXIT_ZOMBIE has been set,
another cpu may release_task (NULLifying p->signal) in between
account_system_time's check and check_rlimit's dereference.  Nor should
account_it_prof risk send_sig.  But surely account_user_time is safe?

Signed-off-by: Hugh Dickins <hugh@veritas.com>
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>
20 years ago[PATCH] acpi_smp_processor_id() warning fix
Andrew Morton [Tue, 11 Jan 2005 09:40:22 +0000 (01:40 -0800)]
[PATCH] acpi_smp_processor_id() warning fix

Suppress an "using smp_processor_id in preemptible code" warning.  The idle
thread isn't preemptible, so we can simply use _smp_processor_id().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] m32r: include nodemask.h for build fix
Hirokazu Takata [Tue, 11 Jan 2005 09:40:08 +0000 (01:40 -0800)]
[PATCH] m32r: include nodemask.h for build fix

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Fix index calculations in clear_page_range.
Martin Schwidefsky [Tue, 11 Jan 2005 09:39:55 +0000 (01:39 -0800)]
[PATCH] Fix index calculations in clear_page_range.

pgd_index(end + PGDIR_SIZE - 1) returns 0 if end + PGDIR_SIZE - 1 is beyond
the end of the address space.

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>
20 years ago[PATCH] acct_update_integrals speedup
Jay Lan [Tue, 11 Jan 2005 09:39:41 +0000 (01:39 -0800)]
[PATCH] acct_update_integrals speedup

This patch is to provide extra check in acct_update_integrals() function.
The routine would return if 'delta' is 0 to take quick exit if nothing to
be done.

Signed-off-by: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] uninline __do_page_cache_readahead()
Andrew Morton [Tue, 11 Jan 2005 09:39:28 +0000 (01:39 -0800)]
[PATCH] uninline __do_page_cache_readahead()

erk, this monster has three callsites.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Update Geert's address in CREDITS
Geert Uytterhoeven [Tue, 11 Jan 2005 01:28:05 +0000 (17:28 -0800)]
[PATCH] Update Geert's address in CREDITS

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] remove outdated smbfs ChangeLog
Adrian Bunk [Tue, 11 Jan 2005 01:27:51 +0000 (17:27 -0800)]
[PATCH] remove outdated smbfs ChangeLog

The patch below removes an outdated samba ChangeLog file.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] coda: rename coda_psdev to coda
Jan Harkes [Tue, 11 Jan 2005 01:27:35 +0000 (17:27 -0800)]
[PATCH] coda: rename coda_psdev to coda

Remove '_psdev' from the Coda sysfs device class name.

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>
20 years ago[PATCH] coda: remove unused coda_mknod
Jan Harkes [Tue, 11 Jan 2005 01:27:21 +0000 (17:27 -0800)]
[PATCH] coda: remove unused coda_mknod

Remove coda_mknod as the code was never used, coda_hasmknod was always 0.
(reported by Adrian Bunk)

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>
20 years ago[PATCH] coda: make global code static
Jan Harkes [Tue, 11 Jan 2005 01:27:05 +0000 (17:27 -0800)]
[PATCH] coda: make global code static

The patch below makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
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>
20 years ago[PATCH] code: ulist_for_each_entry_safe()
Jan Harkes [Tue, 11 Jan 2005 01:26:51 +0000 (17:26 -0800)]
[PATCH] code: ulist_for_each_entry_safe()

Use list_for_each_entry_safe to make code more readable.  Compile tested.

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
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>
20 years ago[PATCH] coda: bounds checking
Jan Harkes [Tue, 11 Jan 2005 01:26:36 +0000 (17:26 -0800)]
[PATCH] coda: bounds checking

This patch adds bounds checks for tainted scalars (reported by Brian Fulton
and Ted Unangst, Coverity Inc.).

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>
20 years ago[PATCH] use modern format for PCI->APIC IRQ transform printks
Bjorn Helgaas [Tue, 11 Jan 2005 01:26:22 +0000 (17:26 -0800)]
[PATCH] use modern format for PCI->APIC IRQ transform printks

Use pci_name() rather than "(B%d,I%d,P%d)" when printing PCI IRQ
information.  Compiled but untested.

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>
20 years ago[PATCH] i2o: fix init/exit section usage
Randy Dunlap [Tue, 11 Jan 2005 01:26:07 +0000 (17:26 -0800)]
[PATCH] i2o: fix init/exit section usage

Fix 3 instances of bad calls to i2o_pci_free(), from init to exit
code sections:
Error: ./drivers/message/i2o/pci.o .init.text refers to 000000f7 R_386_PC32        .exit.text
Error: ./drivers/message/i2o/pci.o .init.text refers to 000003bc R_386_PC32        .exit.text
Error: ./drivers/message/i2o/pci.o .init.text refers to 00000572 R_386_PC32        .exit.text

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] remove NR_SUPER define
Andries E. Brouwer [Tue, 11 Jan 2005 01:25:53 +0000 (17:25 -0800)]
[PATCH] remove NR_SUPER define

Last month I removed the "or too many mounted filesystems" part from an
error message in mount(8) - NR_SUPER has not been used in a very long time.
Also NR_RESERVED_FILES is unused today.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fs/hugetlbfs/inode.c: make 4 functions static
Adrian Bunk [Tue, 11 Jan 2005 01:25:37 +0000 (17:25 -0800)]
[PATCH] fs/hugetlbfs/inode.c: make 4 functions static

The patch below makes four needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fs/ext2/xattr.c: make ext2_xattr_list static
Adrian Bunk [Tue, 11 Jan 2005 01:25:23 +0000 (17:25 -0800)]
[PATCH] fs/ext2/xattr.c: make ext2_xattr_list static

The patch below makes the needlessly global function ext2_xattr_list
static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] ext3 cleanups
Adrian Bunk [Tue, 11 Jan 2005 01:25:07 +0000 (17:25 -0800)]
[PATCH] ext3 cleanups

- make some needlessly global code static
- super.c: remove the unused global function ext3_panic

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] efs: make a struct static (fwd)
Adrian Bunk [Tue, 11 Jan 2005 01:24:52 +0000 (17:24 -0800)]
[PATCH] efs: make a struct static (fwd)

The patch below makes a needessly global struct in the efs code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] mips: fixed build error about NEC VR4100 series
Yoichi Yuasa [Tue, 11 Jan 2005 01:24:37 +0000 (17:24 -0800)]
[PATCH] mips: fixed build error about NEC VR4100 series

This patch had fixed build error about NEC VR4100 series.

 * add #include <linux/kernel.h> for printk()

This patch had already applied to Ralf's cvs tree.

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] smbfs: make some functions static
Adrian Bunk [Tue, 11 Jan 2005 01:24:24 +0000 (17:24 -0800)]
[PATCH] smbfs: make some functions static

The patch below makes some needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] kill one "if (X) vfree(X)" usage
Vincent Hanquez [Tue, 11 Jan 2005 01:24:09 +0000 (17:24 -0800)]
[PATCH] kill one "if (X) vfree(X)" usage

Signed-off-by: Vincent Hanquez <tab@snarc.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] synaptics: Remove unused struct member variable
Peter Osterlund [Tue, 11 Jan 2005 01:23:55 +0000 (17:23 -0800)]
[PATCH] synaptics: Remove unused struct member variable

This patch removes an unused variable in the synaptics_data struct and deletes
a no longer helpful comment.  I don't think this has been used since the very
first synaptics kernel patch I submitted that did all processing in kernel
space instead of delegating most of it to the X server.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] isofs: Remove useless include
Peter Osterlund [Tue, 11 Jan 2005 01:23:38 +0000 (17:23 -0800)]
[PATCH] isofs: Remove useless include

When I was editing cdrom.h, I noticed that fs/isofs/compress.c was recompiled.
This patch removes the useless #include that caused the unnecessary
recompilation.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pktcdvd: Small documentation update
Peter Osterlund [Tue, 11 Jan 2005 01:23:24 +0000 (17:23 -0800)]
[PATCH] pktcdvd: Small documentation update

Mention that a new DVD+RW disc has to be formatted before first use.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pktcdvd: grep-friendly function prototypes
Peter Osterlund [Tue, 11 Jan 2005 01:23:09 +0000 (17:23 -0800)]
[PATCH] pktcdvd: grep-friendly function prototypes

Put function prototypes on a single source line to make them more
grep-friendly.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pktcdvd: make two functions static
Peter Osterlund [Tue, 11 Jan 2005 01:22:55 +0000 (17:22 -0800)]
[PATCH] pktcdvd: make two functions static

Make two needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] drivers/char/: misc cleanups
Adrian Bunk [Tue, 11 Jan 2005 01:22:40 +0000 (17:22 -0800)]
[PATCH] drivers/char/: misc cleanups

below are as requested my drivers/char/ cleanups in one big patch for
better merging.

Each of the patches included was already sent three times without any
objections to linux-kernel.

The n_tty.c patch is
Approved-by: Alan Cox <alan@redhat.com>
The patch below makes changes under drivers/char/ including the
following:
- make needlessly global code static
- remove completely unused code

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fix module_param() type mismatch in drivers/char/n_hdlc.c
William Lee Irwin III [Tue, 11 Jan 2005 01:22:25 +0000 (17:22 -0800)]
[PATCH] fix module_param() type mismatch in drivers/char/n_hdlc.c

maxframe is a variable of type ssize_t; this patch repairs the warning
arising from the type mismatch in the module_param() declaration.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fix unresolved MTD symbols in scx200_docflash.c
William Lee Irwin III [Tue, 11 Jan 2005 01:22:10 +0000 (17:22 -0800)]
[PATCH] fix unresolved MTD symbols in scx200_docflash.c

This driver is using some private #ifdef to try to control the use of
partitions and calling functions that get compiled out of the kernel if it's
set (which it is by default).  This results in unresolved module symbols,
which are bad.

This patch synchronizes the conditional compilation of partition management in
the driver with the global config option for MTD partition management and
thereby fixes the unresolved symbol problem.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] make IRDA string tables conditional on CONFIG_IRDA_DEBUG
William Lee Irwin III [Tue, 11 Jan 2005 01:21:56 +0000 (17:21 -0800)]
[PATCH] make IRDA string tables conditional on CONFIG_IRDA_DEBUG

There are some string tables only used for debugging printk()'s in IRDA
that trip warnings when CONFIG_IRDA_DEBUG is not set.

This patch makes them conditional on CONFIG_IRDA_DEBUG to silence warnings.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] silence numerous size_t warnings in drivers/acpi/processor_idle.c
William Lee Irwin III [Tue, 11 Jan 2005 01:21:40 +0000 (17:21 -0800)]
[PATCH] silence numerous size_t warnings in drivers/acpi/processor_idle.c

Multiple format -related warnings arise from size_t issues.  This patch
peppers the seq_printf()'s with 'z' qualifiers and casts to silence them all.

Signed-off-by: Wililam Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] kill quota_v2.c printk() of size_t warning
William Lee Irwin III [Tue, 11 Jan 2005 01:21:26 +0000 (17:21 -0800)]
[PATCH] kill quota_v2.c printk() of size_t warning

The printk() of a size_t is off, tripping a warning.  This patch qualifies the
integer format with a 'z' to suppress the warning.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] remove umsdos from tree
Christoph Hellwig [Tue, 11 Jan 2005 01:21:11 +0000 (17:21 -0800)]
[PATCH] remove umsdos from tree

UMSDOS has been non-function since early 2.5 and would need a major rewrite
to be resurrected (which I don't hope anyone plans as it's a really
horrible hack)

From: Adrian Bunk <bunk@stusta.de>

With umsdos gone, there's no longer a MAINTAINERS entry required.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] warn about cli, sti & co uses even on UP
Christoph Hellwig [Tue, 11 Jan 2005 01:20:52 +0000 (17:20 -0800)]
[PATCH] warn about cli, sti & co uses even on UP

These don't exist on SMP at all, at least warn on compiling for UP.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cleanup virtual console <-> selection.c interface
Christoph Hellwig [Tue, 11 Jan 2005 01:20:37 +0000 (17:20 -0800)]
[PATCH] cleanup virtual console <-> selection.c interface

Pass around pointers instead of indices into a global array between various
files of the virtual console implementation and stop using obsfucting
macros that expect certain variables to be in scope.

This is a first step to get rid of the various global arrays in the VC
code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] signedness fix in deadline-iosched.c
Jürgen Quade [Tue, 11 Jan 2005 01:20:24 +0000 (17:20 -0800)]
[PATCH] signedness fix in deadline-iosched.c

There is some (obvious) mess with "unsigned int" and "int" in the
deadline-io-scheduler (sysfs-section).  Try to change the attribute
"writes_starved":

root@ezs-mobil:/sys/block/hda/queue# cat scheduler
noop anticipatory [deadline]
root@ezs-mobil:/sys/block/hda/queue# cd iosched/
root@ezs-mobil:/sys/block/hda/queue/iosched# ls
fifo_batch  front_merges  read_expire  write_expire  writes_starved
root@ezs-mobil:/sys/block/hda/queue/iosched# cat writes_starved
2
root@ezs-mobil:/sys/block/hda/queue/iosched# echo 4 >writes_starved
root@ezs-mobil:/sys/block/hda/queue/iosched# cat writes_starved
-2147483648
root@ezs-mobil:/sys/block/hda/queue/iosched#

Because all attribute-variables are defined as "int", the patch
below changes them to "int". Now it works as expected...

Signed-off-by: Juergen Quade <quade@hsnr.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] IDE CD is very noisy
Alan Cox [Tue, 11 Jan 2005 01:20:10 +0000 (17:20 -0800)]
[PATCH] IDE CD is very noisy

The ide-cd code has never been updated over the years to include printk
levels.  This patch extracts the printk level updating from the -ac tree
seperated from other changes.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] mtd: added NEC uPD29F064115 support
Yoichi Yuasa [Tue, 11 Jan 2005 01:19:55 +0000 (17:19 -0800)]
[PATCH] mtd: added NEC uPD29F064115 support

This patch has added NEC uPD29F064115 support to jedec_probe.c.

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] remove unused drivers/char/rsf16fmi.h
Domen Puncer [Tue, 11 Jan 2005 01:19:41 +0000 (17:19 -0800)]
[PATCH] remove unused drivers/char/rsf16fmi.h

Remove nowhere referenced file. (egrep "filename\." didn't find anything)

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] remove unused drivers/char/rio/cdproto.h
Domen Puncer [Tue, 11 Jan 2005 01:19:26 +0000 (17:19 -0800)]
[PATCH] remove unused drivers/char/rio/cdproto.h

Remove nowhere referenced file. (egrep "filename\." didn't find anything)

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Right severity level for fatal message
Pavel Machek [Tue, 11 Jan 2005 01:19:09 +0000 (17:19 -0800)]
[PATCH] Right severity level for fatal message

Telling user machine will crash with default loglevel is nice joke, it
at least needs worse severity.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] signal.c: convert assertion to BUG_ON()
Pavel Machek [Tue, 11 Jan 2005 01:18:54 +0000 (17:18 -0800)]
[PATCH] signal.c: convert assertion to BUG_ON()

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] optimize prefetch() usage in list_for_each_xxx
Oleg Nesterov [Tue, 11 Jan 2005 01:18:41 +0000 (17:18 -0800)]
[PATCH] optimize prefetch() usage in list_for_each_xxx

This patch changes list_for_each_xxx iterators

from:
for (pos = (head)->next, prefetch(pos->next);
     pos != (head);
             pos = pos->next, prefetch(pos->next))
to:
for (pos = (head)->next;
     prefetch(pos->next), pos != (head);
             pos = pos->next)

Reduces my vmlinux .text size by 4401 bytes.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fs/proc/proc_tty.c: avoid array
Domen Puncer [Tue, 11 Jan 2005 01:18:29 +0000 (17:18 -0800)]
[PATCH] fs/proc/proc_tty.c: avoid array

No need for an array here.  Therefore no need to worry about possible
overflows.  seq_printf() can handle this.

Signed-off-by: walter harms <wharms@bfs.de>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fs/proc/base.c: array size
Domen Puncer [Tue, 11 Jan 2005 01:18:15 +0000 (17:18 -0800)]
[PATCH] fs/proc/base.c: array size

proc_pid_wchan() uses a 128-Byte array for something that can change its
size via define.

Signed-off-by: walter harms <wharms@bfs.de>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: support more ethtool_ops
Steffen Klassert [Tue, 11 Jan 2005 01:18:00 +0000 (17:18 -0800)]
[PATCH] 3c59x: support more ethtool_ops

With this the driver supports the ethtool_ops {get,set}_msglvl,
{get,set}_settings, get_stats, get_link, and nway_reset.

Unlike the first patch, the userspace ioctl functions are protected with
spin_lock_irqsave.  Furter I moved the spin_lock_bh from the
mdio_{read,write} functions to vortex_timer().  All the locks acquire
vp->lock now, vp->mdio_lock is not used any more.

Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: VORTEX select MII
Hugh Dickins [Tue, 11 Jan 2005 01:17:46 +0000 (17:17 -0800)]
[PATCH] 3c59x: VORTEX select MII

3c59x now uses generic_mii_ioctl, so VORTEX should select MII.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: Make use of generic_mii_ioctl
Steffen Klassert [Tue, 11 Jan 2005 01:17:30 +0000 (17:17 -0800)]
[PATCH] 3c59x: Make use of generic_mii_ioctl

With this patch the driver makes use of the MII lib helper function
generic_mii_ioctl.  Patch is tested with the mii-diag tool and a 3c905-TX,
3c905B-TX NIC.

Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: use netdev_priv
Steffen Klassert [Tue, 11 Jan 2005 01:17:16 +0000 (17:17 -0800)]
[PATCH] 3c59x: use netdev_priv

Patch changes the two remaining direct accessing of dev->priv to netdev_priv.

Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: missing pci_disable_device
François Romieu [Tue, 11 Jan 2005 01:17:01 +0000 (17:17 -0800)]
[PATCH] 3c59x: missing pci_disable_device

It is possible to remove the device without calling pci_disable_device().
A leak can take place during the init as well.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: enable power management unconditionally
Nathan Bryant [Tue, 11 Jan 2005 01:16:48 +0000 (17:16 -0800)]
[PATCH] 3c59x: enable power management unconditionally

The problem is that under the new PCI driver model, cards are required to
always restore state and call pci_enable_device() on resume.  So the patch
changes the driver to do its restore state calls unconditionally (it used
to only do them when it was configured for wake-on-lan) and adds a call to
pci_enable_device().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: Add EEPROM_RESET for 3c900 Boomerang
John W. Linville [Tue, 11 Jan 2005 01:16:35 +0000 (17:16 -0800)]
[PATCH] 3c59x: Add EEPROM_RESET for 3c900 Boomerang

Add 3c900 Boomerang to list of devices needing EEPROM_RESET

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: remove EEPROM_RESET for 3c905B
John W. Linville [Tue, 11 Jan 2005 01:16:20 +0000 (17:16 -0800)]
[PATCH] 3c59x: remove EEPROM_RESET for 3c905B

Remove the EEPROM_RESET flag for the 3c905B cards.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] 3c59x: reload EEPROM values at rmmod for needy cards
John W. Linville [Tue, 11 Jan 2005 01:16:03 +0000 (17:16 -0800)]
[PATCH] 3c59x: reload EEPROM values at rmmod for needy cards

Enable reload of EEPROM values in reset at rmmod for cards that need it,
similar to old EEPROM_NORESET flag but in reverse.

(Most?) 3c905 and (some?) 3c905B cards need an additional bit unmasked in
the reset at rmmod or else they don't get reinitialized properly when the
driver is reloaded.

Signed-of-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Remove InterMezzo MAINTAINERS entry
Adrian Bunk [Tue, 11 Jan 2005 01:15:46 +0000 (17:15 -0800)]
[PATCH] Remove InterMezzo MAINTAINERS entry

InterMezzo was removed in 2.6, so there's no reason for keeping a
MAINTAINERS entry.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] proc_kcore: Correct double accounting of elf_buflen
Prasanna Meda [Tue, 11 Jan 2005 01:15:31 +0000 (17:15 -0800)]
[PATCH] proc_kcore: Correct double accounting of elf_buflen

Correct double accounting of elf_buflen in read_kcore:get_kcore_size().

Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Export get_sb_pseudo()
Roland Dreier [Tue, 11 Jan 2005 01:15:16 +0000 (17:15 -0800)]
[PATCH] Export get_sb_pseudo()

Export get_sb_pseudo() so that modules can create unmountable
pseudo-filesystems cleanly.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] reiserfs vs-8115 test adjustment
Oleg Drokin [Tue, 11 Jan 2005 01:15:02 +0000 (17:15 -0800)]
[PATCH] reiserfs vs-8115 test adjustment

This patch below is needed to suppress the warning, with more than one
indirect block insertion at a time, it is now possible to split indirect
items as well and there were reports on lkml from people who seen this
warning and were worried about it.

To be on the safe side, I consulted with Vladimir Saveliev and he said that
the change is safe to do indeed.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss update to version 2.6.4
Mike Miller [Tue, 11 Jan 2005 01:14:45 +0000 (17:14 -0800)]
[PATCH] cciss update to version 2.6.4

This patch removes support for 2 controllers that were recently cancelled
and it adds support for the P600, a cciss based SAS controller due to ship
in late March/early April '05.  Neither of these controllers have made it
to the field.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] random: remove pool resizing sysctl
Matt Mackall [Tue, 11 Jan 2005 01:14:31 +0000 (17:14 -0800)]
[PATCH] random: remove pool resizing sysctl

Remove random pool resizing sysctl.  It's racy in hard to fix ways and
doesn't really warrant fixing.  It also only allows adjusting the input
pool size so it's either obsolete or incomplete.

The default 4kbits (512 bytes) of entropy pool should be more than big
enough for all purposes and too small to be a memory concern.

This patch removes the resizing code and marks the sysctl read-only.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] random: whitespace cleanups
Matt Mackall [Tue, 11 Jan 2005 01:14:14 +0000 (17:14 -0800)]
[PATCH] random: whitespace cleanups

Whitespace cleanups
trailing whitespace removal
superfluous brace removal

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Direct write vs truncate deadlock
Christoph Hellwig [Tue, 11 Jan 2005 01:14:00 +0000 (17:14 -0800)]
[PATCH] Direct write vs truncate deadlock

On Fri, Dec 10, 2004 at 11:04:22AM +1100, Nathan Scott wrote:
> The bug# for the write deadlock I mentioned earlier -- 925836.

I finally found some time to look at it, and this fix is almost trivial.

XFS doesn't need the i_alloc_sem at all, so we should avoid taking it in
direct-io.c completely.  As a side-effect it makes the code a little bit
simpler even.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] M68k: Remove nowhere referenced files
Geert Uytterhoeven [Tue, 11 Jan 2005 01:13:44 +0000 (17:13 -0800)]
[PATCH] M68k: Remove nowhere referenced files

M68k: Remove nowhere referenced files

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] MMC_WBSD depends on ISA
Geert Uytterhoeven [Tue, 11 Jan 2005 01:13:30 +0000 (17:13 -0800)]
[PATCH] MMC_WBSD depends on ISA

MMC_WBSD depends on ISA (needs isa_virt_to_bus())

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>