1. 13 11月, 2007 5 次提交
    • S
      x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86_64 · d2cacbcf
      Sam Ravnborg 提交于
      To ease unification of Kconfig.i386 and Kconfig.x86_64
      add X86_64 dependencies to all x86_64 specific symbols.
      
      This patch introduce no functional changes but is one step
      towards unification. This smaller step is used to ease
      review of the patch set.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      d2cacbcf
    • S
      x86: add X86_32 dependency to i386 specific symbols in Kconfig.i386 · 012c6c72
      Sam Ravnborg 提交于
      To ease unification of Kconfig.i386 and Kconfig.x86_64
      add X86_32 dependencies to all i386 specific symbols.
      
      This patch introduce no functional changes but is one step
      towards unification. This smaller step is used to ease
      review of the patch set.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      012c6c72
    • S
      x86: arch/x86/Kconfig.cpu unification · 1032c0ba
      Sam Ravnborg 提交于
      Move all CPU definitions to Kconfig.cpu
      Always define X86_MINIMUM_CPU_FAMILY and do the
      obvious code cleanup in boot/cpucheck.c
      
      Comments from: Adrian Bunk <bunk@kernel.org> incorporated.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      Cc: Brian Gerst <bgerst@didntduck.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      1032c0ba
    • S
      x86: start unification of arch/x86/Kconfig.* · e279b6c1
      Sam Ravnborg 提交于
      This step introduces the file arch/x86/Kconfig
      which contains all the menu's from "Power Management"
      and below.
      
      The main part of the new Kconfig file is shared
      and the remaining i386/x86_64 specific symbols
      are covered by dependencies.
      
      A x86_64 allmodconfig build did not show any differences.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      e279b6c1
    • S
      x86: unification of cfufreq/Kconfig · e8ef9522
      Sam Ravnborg 提交于
      Merge the two Kconfig files to a single file.
      
      Checked using make allmodconfig for x86_64.
      No changes in build.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      e8ef9522
  2. 10 11月, 2007 10 次提交
    • C
      x86 - 32-bit ptrace emulation mishandles 6th arg · ecd744ee
      Chuck Ebbert 提交于
      [ jdike - Pushing Chuck's patch - see
      http://lkml.org/lkml/2005/9/16/261 for some history and a test
      program.  UML is also broken without this patch - its processes get
      SIGBUS from the corrupt 6th argument to mmap being interpretted as a
      file offset ]
      
      When the 32-bit vDSO is used to make a system call, the %ebp register for
      the 6th syscall arg has to be loaded from the user stack (where it's pushed
      by the vDSO user code).  The native i386 kernel always does this before
      stopping for syscall tracing, so %ebp can be seen and modified via ptrace
      to access the 6th syscall argument.  The x86-64 kernel fails to do this,
      presenting the stack address to ptrace instead.  This makes the %rbp value
      seen by 64-bit ptrace of a 32-bit process, and the %ebp value seen by a
      32-bit caller of ptrace, both differ from the native i386 behavior.
      
      This patch fixes the problem by putting the word loaded from the user stack
      into %rbp before calling syscall_trace_enter, and reloading the 6th syscall
      argument from there afterwards (so ptrace can change it).  This makes the
      behavior match that of i386 kernels.
      Original-Patch-By: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NChuck Ebbert <76306.1226@compuserve.com>
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      ecd744ee
    • R
      x86_64: ia32 ptrace THREAD_AREA fix · fd181c72
      Roland McGrath 提交于
      The addr argument to PTRACE_GET_THREAD_AREA and PTRACE_SET_THREAD_AREA is
      not a magic constant.  It's derived from the segment register values being
      used, which are computed originally from the index used with set_thread_area.
      The value does not need to match what a native i386 kernel would accept.
      It needs to match the segment selectors that can actually be in use in this
      32-bit process.  The 64-bit ptrace support for PTRACE_GET_THREAD_AREA
      (normally used only on 32-bit processes) is correct, but the 32-bit emulation
      of ptrace is broken.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      fd181c72
    • D
      FRV: Remove the section annotation on free_initmem() · e4fc5a1a
      David Howells 提交于
      Remove the section annotation on FRV's free_initmem().  It can't be marked
      __init, lest it free itself.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e4fc5a1a
    • I
      x86: make nmi_cpu_busy() always defined · 0492007e
      Ingo Molnar 提交于
      nmi_cpu_busy() must be available on !SMP too.
      
      this is in preparation to a smp_call_function_mask() fix.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      0492007e
    • I
      x86: make ipi_handler() always defined · 4e2947f1
      Ingo Molnar 提交于
      prepare for up_smp_call_function() to ensure that the 'func'
      pointer is unused. (which is related to a KVM build fix)
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      4e2947f1
    • P
      sched: restore deterministic CPU accounting on powerpc · fa13a5a1
      Paul Mackerras 提交于
      Since powerpc started using CONFIG_GENERIC_CLOCKEVENTS, the
      deterministic CPU accounting (CONFIG_VIRT_CPU_ACCOUNTING) has been
      broken on powerpc, because we end up counting user time twice: once in
      timer_interrupt() and once in update_process_times().
      
      This fixes the problem by pulling the code in update_process_times
      that updates utime and stime into a separate function called
      account_process_tick.  If CONFIG_VIRT_CPU_ACCOUNTING is not defined,
      there is a version of account_process_tick in kernel/timer.c that
      simply accounts a whole tick to either utime or stime as before.  If
      CONFIG_VIRT_CPU_ACCOUNTING is defined, then arch code gets to
      implement account_process_tick.
      
      This also lets us simplify the s390 code a bit; it means that the s390
      timer interrupt can now call update_process_times even when
      CONFIG_VIRT_CPU_ACCOUNTING is turned on, and can just implement a
      suitable account_process_tick().
      
      account_process_tick() now takes the task_struct * as an argument.
      Tested both with and without CONFIG_VIRT_CPU_ACCOUNTING.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      fa13a5a1
    • G
      [IA64] IOSAPIC bogus error cleanup · 7f6ff62a
      George Beshers 提交于
      On Altix (sn2) machines the "Error parsing MADT" message is
      misleading because the lack of IOSAPIC entries is expected.
      
      Since I am sure someone will ask, I have been told that
      the chance of this changing anytime soon is close to nil.
      Signed-off-by: NGeorge Beshers <gbeshers@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      7f6ff62a
    • R
      [IA64] Update printing of feature set bits · b8de471f
      Russ Anderson 提交于
      Newer Itanium versions have added additional processor feature set
      bits.  This patch prints all the implemented feature set bits.  Some
      bit descriptions have not been made public.  For those bits, a generic
      "Feature set X bit Y" message is printed.  Bits that are not implemented
      will no longer be printed.
      Signed-off-by: NRuss Anderson <rja@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      b8de471f
    • K
      [IA64] Fix IOSAPIC delivery mode setting · c9d059de
      Kenji Kaneshige 提交于
      Fix the problem that redirect hit bit in I/O SAPIC RTE is set even
      when it must be disabled (e.g. nointroute boot option is set, CPU
      hotplug is enabled or percpu vector is enabled).
      Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      c9d059de
    • D
      [IA64] XPC heartbeat timer function must run on CPU 0 · 4c013f5c
      Dean Nelson 提交于
      Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
      ran on when XPC was started. To avoid the heartbeat from being delayed for
      long periods the timer function must run on CPU 0.
      
      N.B. Altix doesn't currently allow cpu0 to be taken offline, so this is
      safe for now.  This code must be revised when offline of cpu0 is enabled.
      Signed-off-by: NDean Nelson <dcn@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      4c013f5c
  3. 09 11月, 2007 1 次提交
    • R
      [ARM] pxa: fix one-shot timer mode · 91bc51d8
      Russell King 提交于
      One-shot timer mode on PXA has various bugs which prevent kernels
      build with NO_HZ enabled booting.  They end up spinning on a
      permanently asserted timer interrupt because we don't properly
      clear it down - clearing the OIER bit does not stop the pending
      interrupt status.  Fix this in the set_mode handler as well.
      
      Moreover, the code which sets the next expiry point may race with
      the hardware, and we might not set the match register sufficiently
      in the future.  If we encounter that situation, return -ETIME so
      the generic time code retries.
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      91bc51d8
  4. 08 11月, 2007 24 次提交