Skip to content
Snippets Groups Projects
  1. Apr 03, 2009
  2. Mar 30, 2009
  3. Jan 11, 2009
    • Yinghai Lu's avatar
      sparseirq: use kstat_irqs_cpu instead · dee4102a
      Yinghai Lu authored
      
      Impact: build fix
      
      Ingo Molnar wrote:
      
      > tip/arch/blackfin/kernel/irqchip.c: In function 'show_interrupts':
      > tip/arch/blackfin/kernel/irqchip.c:85: error: 'struct kernel_stat' has no member named 'irqs'
      > make[2]: *** [arch/blackfin/kernel/irqchip.o] Error 1
      > make[2]: *** Waiting for unfinished jobs....
      >
      
      So could move kstat_irqs array to irq_desc struct.
      
      (s390, m68k, sparc) are not touched yet, because they don't support genirq
      
      Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      dee4102a
  4. Dec 31, 2008
  5. Dec 13, 2008
    • Rusty Russell's avatar
      cpumask: centralize cpu_online_map and cpu_possible_map · 98a79d6a
      Rusty Russell authored
      
      Impact: cleanup
      
      Each SMP arch defines these themselves.  Move them to a central
      location.
      
      Twists:
      1) Some archs (m32, parisc, s390) set possible_map to all 1, so we add a
         CONFIG_INIT_ALL_POSSIBLE for this rather than break them.
      
      2) mips and sparc32 '#define cpu_possible_map phys_cpu_present_map'.
         Those archs simply have phys_cpu_present_map replaced everywhere.
      
      3) Alpha defined cpu_possible_map to cpu_present_map; this is tricky
         so I just manipulate them both in sync.
      
      4) IA64, cris and m32r have gratuitous 'extern cpumask_t cpu_possible_map'
         declarations.
      
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: default avatarGrant Grundler <grundler@parisc-linux.org>
      Tested-by: default avatarTony Luck <tony.luck@intel.com>
      Acked-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: Mike Travis <travis@sgi.com>
      Cc: ink@jurassic.park.msu.ru
      Cc: rmk@arm.linux.org.uk
      Cc: starvik@axis.com
      Cc: tony.luck@intel.com
      Cc: takata@linux-m32r.org
      Cc: ralf@linux-mips.org
      Cc: grundler@parisc-linux.org
      Cc: paulus@samba.org
      Cc: schwidefsky@de.ibm.com
      Cc: lethal@linux-sh.org
      Cc: wli@holomorphy.com
      Cc: davem@davemloft.net
      Cc: jdike@addtoit.com
      Cc: mingo@redhat.com
      98a79d6a
  6. Nov 30, 2008
  7. Oct 16, 2008
  8. Sep 27, 2008
  9. Sep 08, 2008
    • Manfred Spraul's avatar
      kernel/cpu.c: create a CPU_STARTING cpu_chain notifier · e545a614
      Manfred Spraul authored
      
      Right now, there is no notifier that is called on a new cpu, before the new
      cpu begins processing interrupts/softirqs.
      Various kernel function would need that notification, e.g. kvm works around
      by calling smp_call_function_single(), rcu polls cpu_online_map.
      
      The patch adds a CPU_STARTING notification. It also adds a helper function
      that sends the message to all cpu_chain handlers.
      
      Tested on x86-64.
      All other archs are untested. Especially on sparc, I'm not sure if I got
      it right.
      
      Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      e545a614
  10. Jun 26, 2008
  11. May 16, 2008
  12. May 09, 2008
  13. May 08, 2008
  14. Apr 29, 2008
  15. Apr 17, 2008
  16. Feb 08, 2008
  17. Feb 07, 2008
    • Mathieu Desnoyers's avatar
      m32r: build fix of arch/m32r/kernel/smpboot.c · df0f65f0
      Mathieu Desnoyers authored
      
      This patch is for Mathieu Desnoyers's include/asm-m32r/local.h.
      Applying the new include/asm-m32r/local.h, inclusion of linux/sched.h
      is needed to fix a build error of arch/m32r/kernel/smpboot.c.
      
      <--  snip  -->
        ...
        CC      arch/m32r/kernel/smpboot.o
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c: In function 'do_boot_cpu':
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:279: error: implicit declaration of function 'fork_idle'
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:279: warning: assignment makes pointer from integer without a cast
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:283: error: dereferencing pointer to incomplete type
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:289: error: dereferencing pointer to incomplete type
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:290: error: implicit declaration of function 'task_thread_info'
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:290: error: invalid type argument of '->'
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c: In function 'start_secondary':
      /project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:429: error: implicit declaration of function 'cpu_init'
      make[2]: *** [arch/m32r/kernel/smpboot.o] Error 1
      <--  snip  -->
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      df0f65f0
    • Bernhard Walle's avatar
      Introduce flags for reserve_bootmem() · 72a7fe39
      Bernhard Walle authored
      
      This patchset adds a flags variable to reserve_bootmem() and uses the
      BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions
      between crashkernel area and already used memory.
      
      This patch:
      
      Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE.
      If that flag is set, the function returns with -EBUSY if the memory already
      has been reserved in the past.  This is to avoid conflicts.
      
      Because that code runs before SMP initialisation, there's no race condition
      inside reserve_bootmem_core().
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix powerpc build]
      Signed-off-by: default avatarBernhard Walle <bwalle@suse.de>
      Cc: <linux-arch@vger.kernel.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      72a7fe39
  18. Feb 05, 2008
  19. Feb 03, 2008
  20. Jan 28, 2008
  21. Nov 27, 2007
    • Hirokazu Takata's avatar
      m32r: Update sys_rt_sigsuspend · c37a3303
      Hirokazu Takata authored
      
      Update sys_rt_sigsuspend() of arch/m32r/signal.c.
      This modification is derived from generic one of kernel/signal.c.
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      c37a3303
    • Hirokazu Takata's avatar
      m32r: Add missing syscalls · 59ce3df3
      Hirokazu Takata authored
      
      Add the following 39 syscalls for m32r:
        sys_add_key, sys_request_key, sys_keyctl, sys_ioprio_set,
        sys_ioprio_get, sys_inotify_init, sys_inotify_add_watch,
        sys_inotify_rm_watch, sys_migrate_pages, sys_openat,
        sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat,
        sys_fstatat64, sys_unlinkat, sys_renameat, sys_linkat,
        sys_symlinkat, sys_readlinkat, sys_fchmodat, sys_faccessat,
        sys_pselect6, sys_ppoll, sys_unshare, sys_set_robust_list,
        sys_get_robust_list, sys_splice, sys_sync_file_range,
        sys_tee, sys_vmsplice, sys_move_pages, sys_getcpu, sys_epoll_pwait,
        sys_utimensat, sys_signalfd, sys_timerfd, sys_eventfd, sys_fallocate
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      59ce3df3
  22. Oct 19, 2007
  23. Oct 17, 2007
  24. Oct 16, 2007
  25. Sep 06, 2007
    • Hirokazu Takata's avatar
      m32r: Rename STI/CLI macros · 7071b291
      Hirokazu Takata authored
      
      The names of STI and CLI macros were derived from i386 arch historically,
      but their name are incomprehensible.
      So, for easy to understand, rename these macros to ENABLE_INTERRUPTS
      and DISABLE_INTERRUPTS, respectively.
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      7071b291
    • Hirokazu Takata's avatar
      m32r: build fix of entry.S · 33205613
      Hirokazu Takata authored
      
      This patch fixes the following compile error:
      <--  snip  -->
       ...
        AS      arch/m32r/kernel/entry.o
      /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S: Assembler messages:
      /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S:358: Error: bad instruction `addi r0,#(((((0)+(64))+(32))+(32)))'
      make[2]: *** [arch/m32r/kernel/entry.o] Error 1
      <--  snip  -->
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      33205613
  26. Sep 03, 2007
Loading