1. 29 5月, 2009 1 次提交
  2. 20 2月, 2009 1 次提交
  3. 18 2月, 2009 1 次提交
  4. 17 2月, 2009 1 次提交
  5. 18 7月, 2008 1 次提交
    • M
      x86: APIC: remove apic_write_around(); use alternatives · 593f4a78
      Maciej W. Rozycki 提交于
      Use alternatives to select the workaround for the 11AP Pentium erratum
      for the affected steppings on the fly rather than build time.  Remove the
      X86_GOOD_APIC configuration option and replace all the calls to
      apic_write_around() with plain apic_write(), protecting accesses to the
      ESR as appropriate due to the 3AP Pentium erratum.  Remove
      apic_read_around() and all its invocations altogether as not needed.
      Remove apic_write_atomic() and all its implementing backends.  The use of
      ASM_OUTPUT2() is not strictly needed for input constraints, but I have
      used it for readability's sake.
      
      I had the feeling no one else was brave enough to do it, so I went ahead
      and here it is.  Verified by checking the generated assembly and tested
      with both a 32-bit and a 64-bit configuration, also with the 11AP
      "feature" forced on and verified with gdb on /proc/kcore to work as
      expected (as an 11AP machines are quite hard to get hands on these days).
      Some script complained about the use of "volatile", but apic_write() needs
      it for the same reason and is effectively a replacement for writel(), so I
      have disregarded it.
      
      I am not sure what the policy wrt defconfig files is, they are generated
      and there is risk of a conflict resulting from an unrelated change, so I
      have left changes to them out.  The option will get removed from them at
      the next run.
      
      Some testing with machines other than mine will be needed to avoid some
      stupid mistake, but despite its volume, the change is not really that
      intrusive, so I am fairly confident that because it works for me, it will
      everywhere.
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      593f4a78
  6. 18 6月, 2008 1 次提交
  7. 30 1月, 2008 4 次提交
    • A
      x86: arch/x86/kernel/cpu/mcheck/k7.c checkpatch fixes · 72713393
      Andrew Morton 提交于
      #88: FILE: arch/x86/kernel/cpu/mcheck/k7.c:34:
      +		rdmsr(MSR_IA32_MC0_STATUS+i*4,low, high);
       		                             ^
      
      ERROR: need space after that ',' (ctx:VxV)
      #142: FILE: arch/x86/kernel/cpu/mcheck/p4.c:170:
      +		rdmsr(MSR_IA32_MC0_STATUS+i*4,low, high);
       		                             ^
      
      ERROR: need space after that ',' (ctx:VxV)
      #180: FILE: arch/x86/kernel/cpu/mcheck/p6.c:34:
      +		rdmsr(MSR_IA32_MC0_STATUS+i*4,low, high);
       		                             ^
      
      total: 3 errors, 0 warnings, 114 lines checked
      
      Your patch has style problems, please review.  If any of these errors
      are false positives report them to the maintainer, see
      CHECKPATCH in MAINTAINERS.
      
      Please run checkpatch prior to sending patches
      
      Cc: Min Zhang <mzhang@mvista.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      72713393
    • A
      x86: arch/x86/kernel/cpu/mcheck/ checkpatch fixes · b912a1c7
      Andrew Morton 提交于
      #40: FILE: arch/x86/kernel/cpu/mcheck/k7.c:46:
      +				snprintf (misc, 20, "[%08x%08x]", ahigh, alow);
      
      WARNING: line over 80 characters
      #45: FILE: arch/x86/kernel/cpu/mcheck/k7.c:50:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #45: FILE: arch/x86/kernel/cpu/mcheck/k7.c:50:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #48: FILE: arch/x86/kernel/cpu/mcheck/k7.c:52:
      +			printk (KERN_EMERG "CPU %d: Bank %d: %08x%08x%s%s\n",
      
      WARNING: no space between function name and open parenthesis '('
      #65: FILE: arch/x86/kernel/cpu/mcheck/p4.c:161:
      +		printk (KERN_DEBUG "CPU %d: EIP: %08x EFLAGS: %08x\n"
      
      WARNING: no space between function name and open parenthesis '('
      #88: FILE: arch/x86/kernel/cpu/mcheck/p4.c:182:
      +				snprintf (misc, 20, "[%08x%08x]", ahigh, alow);
      
      WARNING: line over 80 characters
      #93: FILE: arch/x86/kernel/cpu/mcheck/p4.c:186:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #93: FILE: arch/x86/kernel/cpu/mcheck/p4.c:186:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #96: FILE: arch/x86/kernel/cpu/mcheck/p4.c:188:
      +			printk (KERN_EMERG "CPU %d: Bank %d: %08x%08x%s%s\n",
      
      WARNING: no space between function name and open parenthesis '('
      #120: FILE: arch/x86/kernel/cpu/mcheck/p6.c:46:
      +				snprintf (misc, 20, "[%08x%08x]", ahigh, alow);
      
      WARNING: line over 80 characters
      #125: FILE: arch/x86/kernel/cpu/mcheck/p6.c:50:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #125: FILE: arch/x86/kernel/cpu/mcheck/p6.c:50:
      +				snprintf (addr, 24, " at %08x%08x", ahigh, alow);
      
      WARNING: no space between function name and open parenthesis '('
      #128: FILE: arch/x86/kernel/cpu/mcheck/p6.c:52:
      +			printk (KERN_EMERG "CPU %d: Bank %d: %08x%08x%s%s\n",
      
      total: 0 errors, 13 warnings, 100 lines checked
      
      Your patch has style problems, please review.  If any of these errors
      are false positives report them to the maintainer, see
      CHECKPATCH in MAINTAINERS.
      
      Please run checkpatch prior to sending patches
      
      Cc: Min Zhang <mzhang@mvista.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      b912a1c7
    • M
      arch/x86/kernel/cpu/mcheck/p4.c: cleanups · 9e8b6d90
      Min Zhang 提交于
      SMP, the machine check exception dispatches all logical processors within a
      physical package to the machine-check exception handler, so the printk
      within each handler outputs concurrently and makes the output unreadable.
      Refer to Intel system programming guide Part 1 Section 7.8.5
      http://developer.intel.com/design/processor/manuals/253668.pdfSigned-off-by: NMin Zhang <mzhang@mvista.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      9e8b6d90
    • H
      x86: remove all definitions with fastcall · 75604d7f
      Harvey Harrison 提交于
      fastcall is always defined to be empty, remove it from arch/x86
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      75604d7f
  8. 18 10月, 2007 1 次提交
    • J
      x86: expand /proc/interrupts to include missing vectors, v2 · 38e760a1
      Joe Korty 提交于
      Add missing IRQs and IRQ descriptions to /proc/interrupts.
      
      /proc/interrupts is most useful when it displays every IRQ vector in use by
      the system, not just those somebody thought would be interesting.
      
      This patch inserts the following vector displays to the i386 and x86_64
      platforms, as appropriate:
      
      	rescheduling interrupts
      	TLB flush interrupts
      	function call interrupts
      	thermal event interrupts
      	threshold interrupts
      	spurious interrupts
      
      A threshold interrupt occurs when ECC memory correction is occuring at too
      high a frequency.  Thresholds are used by the ECC hardware as occasional
      ECC failures are part of normal operation, but long sequences of ECC
      failures usually indicate a memory chip that is about to fail.
      
      Thermal event interrupts occur when a temperature threshold has been
      exceeded for some CPU chip.  IIRC, a thermal interrupt is also generated
      when the temperature drops back to a normal level.
      
      A spurious interrupt is an interrupt that was raised then lowered by the
      device before it could be fully processed by the APIC.  Hence the apic sees
      the interrupt but does not know what device it came from.  For this case
      the APIC hardware will assume a vector of 0xff.
      
      Rescheduling, call, and TLB flush interrupts are sent from one CPU to
      another per the needs of the OS.  Typically, their statistics would be used
      to discover if an interrupt flood of the given type has been occuring.
      
      AK: merged v2 and v4 which had some more tweaks
      AK: replace Local interrupts with Local timer interrupts
      AK: Fixed description of interrupt types.
      
      [ tglx: arch/x86 adaptation ]
      [ mingo: small cleanup ]
      Signed-off-by: NJoe Korty <joe.korty@ccur.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Tim Hockin <thockin@hockin.org>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      38e760a1
  9. 11 10月, 2007 1 次提交
  10. 03 5月, 2007 1 次提交
    • Z
      [PATCH] i386: Clean up arch/i386/kernel/cpu/mcheck/p4.c · 18420001
      Zachary Amsden 提交于
      No, just no.  You do not use goto to skip a code block.  You do not
      return an obvious variable from a singly-inlined function and give
      the function a return value.  You don't put unexplained comments
      about kmalloc in code which doesn't do dynamic allocation.  And
      you don't leave stray warnings around for no good reason.
      
      Also, when possible, it is better to use block scoped variables
      because gcc can sometime generate better code.
      Signed-off-by: NZachary Amsden <zach@vmware.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      18420001
  11. 27 2月, 2007 1 次提交
    • L
      Revert "[PATCH] i386: add idle notifier" · ea3d5226
      Linus Torvalds 提交于
      This reverts commit 2ff2d3d7.
      
      Uwe Bugla reports that he cannot mount a floppy drive any more, and Jiri
      Slaby bisected it down to this commit.
      
      Benjamin LaHaise also points out that this is a big hot-path, and that
      interrupt delivery while idle is very common and should not go through
      all these expensive gyrations.
      
      Fix up conflicts in arch/i386/kernel/apic.c and arch/i386/kernel/irq.c
      due to other unrelated irq changes.
      
      Cc: Stephane Eranian <eranian@hpl.hp.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Andrew Morton <akpm@osdl.org>
      Cc: Uwe Bugla <uwe.bugla@gmx.de>
      Cc: Jiri Slaby <jirislaby@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ea3d5226
  12. 13 2月, 2007 1 次提交
    • S
      [PATCH] i386: add idle notifier · 2ff2d3d7
      Stephane Eranian 提交于
      Add a notifier mechanism to the low level idle loop.  You can register a
      callback function which gets invoked on entry and exit from the low level idle
      loop.  The low level idle loop is defined as the polling loop, low-power call,
      or the mwait instruction.  Interrupts processed by the idle thread are not
      considered part of the low level loop.
      
      The notifier can be used to measure precisely how much is spent in useless
      execution (or low power mode).  The perfmon subsystem uses it to turn on/off
      monitoring.
      Signed-off-by: Nstephane eranian <eranian@hpl.hp.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      2ff2d3d7
  13. 26 9月, 2006 2 次提交
  14. 01 7月, 2006 1 次提交
  15. 07 11月, 2005 1 次提交
  16. 27 9月, 2005 1 次提交
  17. 26 6月, 2005 1 次提交
  18. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4