1. 26 2月, 2009 2 次提交
  2. 25 2月, 2009 9 次提交
  3. 24 2月, 2009 1 次提交
    • S
      x86: minor cleanup in the espfix code · bda3a897
      Stas Sergeev 提交于
      Impact: Cleanup
      
      Checkin be44d2aa eliminates the use of
      a 16-bit stack for espfix.  However, at least one instruction remained
      that only operated on the low 16 bits of %esp.
      
      This is not a bug per se because the kernel stack is always an aligned
      4K or 8K block.  Therefore it cannot cross 64K boundaries; this code,
      in fact, relies strictly on that fact.
      
      However, it's a lot cleaner (and, for that matter, smaller) to operate
      on the entire 32-bit register.
      Signed-off-by: NStas Sergeev <stsp@aknet.ru>
      CC: Zachary Amsden <zach@vmware.com>
      CC: Chuck Ebbert <cebbert@redhat.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      bda3a897
  4. 23 2月, 2009 6 次提交
  5. 22 2月, 2009 3 次提交
  6. 21 2月, 2009 3 次提交
  7. 20 2月, 2009 2 次提交
  8. 18 2月, 2009 14 次提交
    • A
      x86, mce: fix ifdef for 64bit thermal apic vector clear on shutdown · 07db1c14
      Andi Kleen 提交于
      Impact: Bugfix
      
      The ifdef for the apic clear on shutdown for the 64bit intel thermal
      vector was incorrect and never triggered. Fix that.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      07db1c14
    • A
      x86, mce: use force_sig_info to kill process in machine check · 380851bc
      Andi Kleen 提交于
      Impact: bug fix (with tolerant == 3)
      
      do_exit cannot be called directly from the exception handler because
      it can sleep and the exception handler runs on the exception stack.
      Use force_sig() instead.
      
      Based on a earlier patch by Ying Huang who debugged the problem.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      380851bc
    • A
      x86, mce: reinitialize per cpu features on resume · 6ec68bff
      Andi Kleen 提交于
      Impact: Bug fix
      
      This fixes a long standing bug in the machine check code. On resume the
      boot CPU wouldn't get its vendor specific state like thermal handling
      reinitialized. This means the boot cpu wouldn't ever get any thermal
      events reported again.
      
      Call the respective initialization functions on resume
      
      v2: Remove ancient init because they don't have a resume device anyways.
          Pointed out by Thomas Gleixner.
      v3: Now fix the Subject too to reflect v2 change
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      6ec68bff
    • I
      x86, apic: separate 32-bit setup functionality out of apic_32.c · 9be1b56a
      Ingo Molnar 提交于
      Impact: build fix, cleanup
      
      A couple of arch setup callbacks were mistakenly in apic_32.c, breaking
      the build.
      
      Also simplify the code a bit.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9be1b56a
    • P
      x86, rcu: fix strange load average and ksoftirqd behavior · bf51935f
      Paul E. McKenney 提交于
      Damien Wyart reported high ksoftirqd CPU usage (20%) on an
      otherwise idle system.
      
      The function-graph trace Damien provided:
      
      >   799.521187 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.521371 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.521555 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.521738 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.521934 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.522068 |   1)  ksoftir-2324  |               |                rcu_check_callbacks() {
      >   799.522208 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.522392 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.522575 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.522759 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.522956 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.523074 |   1)  ksoftir-2324  |               |                  rcu_check_callbacks() {
      >   799.523214 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.523397 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.523579 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.523762 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.523960 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.524079 |   1)  ksoftir-2324  |               |                  rcu_check_callbacks() {
      >   799.524220 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.524403 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.524587 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      >   799.524770 |   1)    <idle>-0    |               |  rcu_check_callbacks() {
      > [ . . . ]
      
      Shows rcu_check_callbacks() being invoked way too often. It should be called
      once per jiffy, and here it is called no less than 22 times in about
      3.5 milliseconds, meaning one call every 160 microseconds or so.
      
      Why do we need to call rcu_pending() and rcu_check_callbacks() from the
      idle loop of 32-bit x86, especially given that no other architecture does
      this?
      
      The following patch removes the call to rcu_pending() and
      rcu_check_callbacks() from the x86 32-bit idle loop in order to
      reduce the softirq load on idle systems.
      Reported-by: NDamien Wyart <damien.wyart@free.fr>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      bf51935f
    • I
      x86, apic: move remaining APIC drivers to arch/x86/kernel/apic/* · 2a05180f
      Ingo Molnar 提交于
      Move the 32-bit extended-arch APIC drivers to arch/x86/kernel/apic/
      too, and rename apic_64.c to probe_64.c.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      2a05180f
    • I
      x86, apic: move APIC drivers to arch/x86/kernel/apic/* · f62bae50
      Ingo Molnar 提交于
      arch/x86/kernel/ is getting a bit crowded, and the APIC
      drivers are scattered into various different files.
      
      Move them to arch/x86/kernel/apic/*, and also remove
      the 'gen' prefix from those which had it.
      
      Also move APIC related functionality: the IO-APIC driver,
      the NMI and the IPI code.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      f62bae50
    • I
      x86, apic: rename 'genapic' to 'apic' · be163a15
      Ingo Molnar 提交于
      Impact: cleanup
      
      Now that all APIC code is consolidated there's nothing 'gen' about
      apics anymore - so rename 'struct genapic' to 'struct apic'.
      
      This shortens the code and is nicer to read as well.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      be163a15
    • I
      x86, apic: remove ->store_NMI_vector() · ab6fb7c0
      Ingo Molnar 提交于
      Impact: cleanup
      
      It's not used by anything anymore.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ab6fb7c0
    • I
      x86, numaq_32: clean up, misc · cb81eaed
      Ingo Molnar 提交于
      Impact: cleanup
      
       - misc other cleanups that change the md5 signature
       - consolidate global variables
       - remove unnecessary __numaq_mps_oem_check() wrapper
       - make numaq_mps_oem_check static
       - update copyrights
       - misc other cleanups pointed out by checkpatch
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cb81eaed
    • I
      x86, numaq_32: clean up · 36afc3af
      Ingo Molnar 提交于
      Impact: cleanup
      
      - refactor smp_dump_qct()
      - tidy up include files, remove duplicates
      - misc other cleanups, pointed out by checkpatch
      
      No code changed:
      
      md5:
         9c0bc01a53558c77df0f2ebcda7e11a9  numaq_32.o.before.asm
         9c0bc01a53558c77df0f2ebcda7e11a9  numaq_32.o.after.asm
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      36afc3af
    • I
      x86, es7000: misc cleanups · 7da18ed9
      Ingo Molnar 提交于
      These are cleanups that change the md5 signature:
      
       - asm/ => linux/ include conversion
       - simplify the code flow of find_unisys_acpi_oem_table()
       - move ACPI methods into one #ifdef block
       - remove 0/NULL initialization of statics
       - simplify/standardize printouts
       - update copyrights
       - more cleanups, pointed out by checkpatch
      
      arch/x86/kernel/es7000_32.o:
      
         text	   data	    bss	    dec	    hex	filename
         2693	    192	     44	   2929	    b71	es7000_32.o.before
         2688	    192	     44	   2924	    b6c	es7000_32.o.after
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      7da18ed9
    • I
      x86, es7000: remove dead code, clean up · 352887d1
      Ingo Molnar 提交于
      Impact: cleanup
      
       - a number of structure definitions were stale
       - remove needless wrappers around apic definitions
       - fix details noticed by checkpatch
      
      No code changed:
      
      md5:
         029d8fde0aaf6e934ea63bd8b36430fd  es7000_32.o.before.asm
         029d8fde0aaf6e934ea63bd8b36430fd  es7000_32.o.after.asm
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      352887d1
    • I
      x86, es7000: remove externs · d3185b37
      Ingo Molnar 提交于
      Impact: cleanup
      
      In the subarch times there were a number of externs between
      various bits of the ES7000 code. Now that there's a single
      es7000-platform support file, the externs can be removed and
      the functions can be changed the statics.
      
      Beyond the cleanup factor, this also shrinks the size of the
      kernel image a bit:
      
      arch/x86/kernel/es7000_32.o:
      
         text	   data	    bss	    dec	    hex	filename
         2813	    192	     44	   3049	    be9	es7000_32.o.before
         2693	    192	     44	   2929	    b71	es7000_32.o.after
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d3185b37