30 Jan, 2008

2 commits


29 Jan, 2008

1 commit


26 Jan, 2008

1 commit

  • Use HR-timers (when available) to deliver an accurate preemption tick.

    The regular scheduler tick that runs at 1/HZ can be too coarse when nice
    level are used. The fairness system will still keep the cpu utilisation 'fair'
    by then delaying the task that got an excessive amount of CPU time but try to
    minimize this by delivering preemption points spot-on.

    The average frequency of this extra interrupt is sched_latency / nr_latency.
    Which need not be higher than 1/HZ, its just that the distribution within the
    sched_latency period is important.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     

15 Jan, 2008

1 commit

  • Since the msr.h header uses types like __u32, it should pull in linux/types.h.

    [ mingo@elte.hu: affects user-space that includes this header. We dont
    actually like user-space including raw kernel headers but it's a
    longstanding practice and it's easy for the kernel to be nice about
    this. ]

    Signed-off-by: Mike Frysinger
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Mike Frysinger
     

02 Jan, 2008

2 commits


19 Dec, 2007

2 commits

  • The patch introducing this left out 64-bit x86 despite it also having
    extra entries.

    this solves Xen guest troubles.

    Signed-off-by: Jan Beulich
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Jan Beulich
     
  • jprobe for x86-64 may cause kernel page fault when the jprobe_return()
    is called from incorrect function.

    - Use jprobe_saved_regs instead getting it from stack.
    (Especially on x86-64, it may get incorrect data, because
    pt_regs can not be get by using container_of(rsp))
    - Change the type of stack pointer to unsigned long *.

    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Masami Hiramatsu
     

04 Dec, 2007

1 commit

  • If HPET was enabled by pci quirks, we use i8253 as initial clockevent
    because pci quirks doesn't run until pci is initialized.

    The above means the kernel (or something) is assuming HPET legacy
    replacement is disabled and can use i8253 at boot.

    If we used kexec, it isn't true. So, this patch disables HPET legacy
    replacement for kexec in machine_shutdown().

    Signed-off-by: OGAWA Hirofumi
    Acked-by: Venkatesh Pallipadi
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    OGAWA Hirofumi
     

27 Nov, 2007

2 commits

  • ACPI processor idle code references local_apic_timer_c2_ok, which
    is not available when LOCAL_APIC is disabled.

    Define local_apic_timer_c2_ok as a constant, when LOCAL_APIC=n

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     
  • AMD Opteron processors before CG revision don't like C-states > 1.

    This solves the long standing bugzilla #5303 and probably some more
    on affected machines:

    http://bugzilla.kernel.org/show_bug.cgi?id=5303

    [ tglx@linutronix.de: reworked the patch so it does not wreck ia64 ]

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Alexey Starikovskiy
     

17 Nov, 2007

3 commits

  • Attempt to fix http://bugzilla.kernel.org/show_bug.cgi?id=8378

    Hiroto Shibuya wrote to tell me that he has a VIA EPIA-EK10000 which
    suffers from the reboot problem when no keyboard is attached. My first
    patch works for him:

    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538

    But the latest patch does not work for him :

    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b93789808756bcc1e5c90c99f1b1ef52f839a51

    We found that it was necessary to also set the "disable keyboard" flag in
    the command byte, as the first patch was doing. The second patch tries to
    minimally modify the command byte, but it is not enough.

    Please consider this simple one-line patch to help people with low end VIA
    motherboards reboot when no keyboard is attached. Hiroto Shibuya has
    verified that this works for him (as I no longer have an afflicted
    machine).

    Additional discussion:

    Note that original patch from Truxton DOES
    disable keyboard and this has been in main tree since 2.6.14, thus it must have
    quite a bit of air time already.

    http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.14.y.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538

    Note that he only mention "System flag" in the description and comment, but
    in the code, "disable keyboard" flag is set.

    outb(0x14, 0x60); /* set "System flag" */

    In 2.6.23, he made a change to read the current byte and then mask the flags,
    but along this change, he only set the "System flag" and dropped the setting
    of "disable keyboard" flag.

    http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=commit;h=8b93789808756bcc1e5c90c99f1b1ef52f839a51

    outb(cmd | 0x04, 0x60); /* set "System flag" */

    So my request is to restore the setting of disable keyboard flag which has been
    there since 2.6.14 but disappeared in 2.6.23.

    Cc: Lee Garrett
    Cc: "Hiroto Shibuya"
    Cc: Natalie Protasevich
    Cc: Dmitry Torokhov
    Cc: Ingo Molnar
    Cc: "H. Peter Anvin"
    Cc: Aristeu Rozanski
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Thomas Gleixner

    Truxton Fulton
     
  • Fix header file name for Voyager build.

    In file included from arch/x86/kernel/setup_32.c:61:
    include/asm-x86/mach-voyager/setup_arch.h:2:26: error: asm/setup_32.h: No such file or directory
    make[1]: *** [arch/x86/kernel/setup_32.o] Error 1

    Signed-off-by: Randy Dunlap
    Signed-off-by: Thomas Gleixner

    Randy Dunlap
     
  • es7000_check_dst() contains a memcpy from 0, which probably should have been
    a memset. Remove it and check the retunr value from acpi_get_table_header.

    Noticed by: Joe Perches

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     

15 Nov, 2007

1 commit

  • x86 32-bit isn't saving the stack pointer to pt_regs->esp when an
    interrupt occurs.

    Signed-off-by: Jan Blunck
    Tested-by: Robert Fitzsimons
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Philippe Elie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     

13 Nov, 2007

1 commit

  • restore sigcontext is taking a DNA exception while restoring FP context
    from the user stack, during the sigreturn. Appended patch fixes it by
    doing clts() if the app doesn't touch FP during the signal handler
    execution. This will stop generating a DNA, during the fxrstor in the
    sigreturn.

    This improves 64-bit lat_sig numbers by ~30% on my core2 platform.

    Signed-off-by: Suresh Siddha
    Signed-off-by: Linus Torvalds

    Siddha, Suresh B
     

10 Nov, 2007

1 commit

  • Use struct boot_params instead of PARAM + 0xoffsets.
    Fixes one of many Voyager build problems.

    arch/x86/kernel/setup_32.c:543: error: 'PARAM' undeclared (first use in this function)

    Signed-off-by: Randy Dunlap
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Randy Dunlap
     

05 Nov, 2007

1 commit


04 Nov, 2007

1 commit


30 Oct, 2007

3 commits

  • This patch renames the 4 symbols iommu_hole_init(), iommu_aperture,
    iommu_aperture_allowed, iommu_aperture_disabled. All these symbols are only
    used for the GART implementation of IOMMUs.

    It adds and additional gart_ prefix to them.

    Signed-off-by: Joerg Roedel
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Joerg Roedel
     
  • This patch renames the IOMMU config option to GART_IOMMU because in fact it
    means the GART and not general support for an IOMMU on x86.

    Signed-off-by: Joerg Roedel
    Acked-by: Muli Ben-Yehuda
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Joerg Roedel
     
  • This patch renames the include file asm-x86/iommu.h to asm-x86/gart.h to make
    clear to which IOMMU implementation it belongs. The patch also adds "GART" to
    the Kconfig line.

    Signed-off-by: Joerg Roedel
    Acked-by: Muli Ben-Yehuda
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Joerg Roedel
     

28 Oct, 2007

1 commit

  • This reverts commit 6442eea937ef797d4b66733f49c82e2fdc2aca6f.

    The patch breaks smp_ops and needs to be reverted. The solution to
    allow modular build of KVM is to export smp_ops instead.

    Pointed-out-by: James Bottomley

    tglx, so write out 100 times "voyager is a useful architecture" ...
    yes, Sir

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     

26 Oct, 2007

2 commits

  • Coding style cleanups:

    - change __inline__ to inline;
    - drop space in "* addr" parameters;
    - drop space between func. name and '('

    The "volatile" keywords are correct according to email from one
    Linus Torvalds.

    [Several other arches need some of this also.]

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Use duplicated inline functions for test_and_set_bit_lock() on x86
    instead of #define macros, thus avoiding a bad example. This allows
    kernel-doc to run cleanly instead of terminating with an error:

    Error(linux-2.6.24-rc1//include/asm-x86/bitops_32.h:188): cannot understand prototype: 'test_and_set_bit_lock test_and_set_bit '

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

25 Oct, 2007

2 commits


24 Oct, 2007

12 commits