26 May, 2005

2 commits

  • Fixes some !CONFIG_BUG warnings:
    include/asm/mmu_context.h: I funktion `switch_mm':
    include/asm/mmu_context.h:57: varning: implicit declaration of function `out_of_line_bug'

    Signed-off-by: Alexander Nyberg
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Nyberg
     
  • For quite a while, there has existed a hypervisor bug on legacy iSeries
    which means that we do not get the boot time set in the kernel. This
    patch works around that bug. This was most noticable when the root
    partition needed to be checked at every boot as the kernel thought it
    was some time in 1905 until user mode reset the time correctly.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     

25 May, 2005

1 commit


24 May, 2005

4 commits


22 May, 2005

2 commits

  • Linus Torvalds
     
  • In _spin_unlock_bh(lock):
    do { \
    _raw_spin_unlock(lock); \
    preempt_enable(); \
    local_bh_enable(); \
    __release(lock); \
    } while (0)

    there is no reason for using preempt_enable() instead of a simple
    preempt_enable_no_resched()

    Since we know bottom halves are disabled, preempt_schedule() will always
    return at once (preempt_count!=0), and hence preempt_check_resched() is
    useless here...

    This fixes it by using "preempt_enable_no_resched()" instead of the
    "preempt_enable()", and thus avoids the useless preempt_check_resched()
    just before re-enabling bottom halves.

    Signed-off-by: Samuel Thibault
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     

21 May, 2005

6 commits


20 May, 2005

2 commits


18 May, 2005

1 commit

  • The driver model has a "detach_state" mechanism that:

    - Has never been used by any in-kernel drive;
    - Is superfluous, since driver remove() methods can do the same thing;
    - Became buggy when the suspend() parameter changed semantics and type;
    - Could self-deadlock when called from certain suspend contexts;
    - Is effectively wasted documentation, object code, and headspace.

    This removes that "detach_state" mechanism; net code shrink, as well
    as a per-device saving in the driver model and sysfs.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

17 May, 2005

11 commits

  • Linus Torvalds
     
  • Modified dvb_register_adapter() to avoid kmalloc/kfree. Drivers have to embed
    struct dvb_adapter into their private data struct from now on. (Andreas
    Oberritter)

    Signed-off-by: Johannes Stezenbach
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Stezenbach
     
  • These days handles everything, no need for an asm
    header on just two architectures.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Collected NMI watchdog fixes.

    - Fix call of check_nmi_watchdog

    - Remove earlier move of check_nmi_watchdog to later. It does not fix the
    race it was supposed to fix fully.

    - Remove unused P6 definitions

    - Add support for performance counter based watchdog on P4 systems.

    This allows to run it only once per second, which saves some CPU time.
    Previously it would run at 1000Hz, which was too much.

    Code ported from i386

    Make this the default on Intel systems.

    - Use check_nmi_watchdog with local APIC based nmi

    - Fix race in touch_nmi_watchdog

    - Fix bug that caused incorrect performance counters to be programmed in a
    few cases on K8.

    - Remove useless check for local APIC

    - Use local_t and per_cpu variables for per CPU data.

    - Keep other CPUs busy during check_nmi_watchdog to make sure they really
    tick when in lapic mode.

    - Only check CPUs that are actually online.

    - Various other fixes.

    - Fix fallback path when MSRs are unimplemented

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • There are unfortunately more and more multi processor Opteron systems which
    don't have HPET timer support in the southbridge. This covers in particular
    Nvidia and VIA chipsets. They also don't guarantee that the TSCs are
    synchronized between CPUs; and especially with MP powernow the systems are
    nearly unusable because the time gets very inconsistent between CPUs.

    The timer code for x86-64 was originally written under the assumption that we
    could fall back to the HPET timer on such systems. But this doesn't work
    there.

    Another alternative is to use the ACPI PM timer as primary time source. This
    patch does that. The kernel only uses PM timer when there is no other choice
    because it has some disadvantages.

    Ported over from i386. It should be faster than the i386 version because I
    dropped the "read three times" workaround, but is still considerable slower
    than HPET and also does not work together with vsyscalls which have to be
    disabled.

    Cc:
    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • It is unnecessary on modern Intel or AMD systems, and that is all we support
    on x86-64

    Also causes problems on various systems

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Remove x86_apicid field

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Needed by big systems and only costs a few K of memory.

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • This works around a bug in the AMD K8 CPUs.

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Actually remove elf.h in the tree. The previous patch, due to a quilt
    bug/misuse, left it in the tree as a 0-length file, preventing the build to
    see it as missing and to generate a symlink in its place.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • Linus Torvalds
     

16 May, 2005

1 commit

  • Updated patch to fix erroneous flush of COMRESET set and missing flush
    of COMRESET clear. Created a new routine scr_write_flush() to try to
    prevent this in the future. Also, this patch is based on libata-2.6
    instead of the previous libata-dev-2.6 based patch.

    Signed-off-by: Brett Russ

    Index: libata-2.6/drivers/scsi/libata-core.c
    ===================================================================

    Brett Russ
     

13 May, 2005

1 commit


11 May, 2005

1 commit


10 May, 2005

3 commits


07 May, 2005

2 commits


06 May, 2005

3 commits