29 May, 2011

2 commits

  • * setns:
    ns: Wire up the setns system call

    Done as a merge to make it easier to fix up conflicts in arm due to
    addition of sendmmsg system call

    Linus Torvalds
     
  • 32bit and 64bit on x86 are tested and working. The rest I have looked
    at closely and I can't find any problems.

    setns is an easy system call to wire up. It just takes two ints so I
    don't expect any weird architecture porting problems.

    While doing this I have noticed that we have some architectures that are
    very slow to get new system calls. cris seems to be the slowest where
    the last system calls wired up were preadv and pwritev. avr32 is weird
    in that recvmmsg was wired up but never declared in unistd.h. frv is
    behind with perf_event_open being the last syscall wired up. On h8300
    the last system call wired up was epoll_wait. On m32r the last system
    call wired up was fallocate. mn10300 has recvmmsg as the last system
    call wired up. The rest seem to at least have syncfs wired up which was
    new in the 2.6.39.

    v2: Most of the architecture support added by Daniel Lezcano
    v3: ported to v2.6.36-rc4 by: Eric W. Biederman
    v4: Moved wiring up of the system call to another patch
    v5: ported to v2.6.39-rc6
    v6: rebased onto parisc-next and net-next to avoid syscall conflicts.
    v7: ported to Linus's latest post 2.6.39 tree.

    >  arch/blackfin/include/asm/unistd.h     |    3 ++-
    >  arch/blackfin/mach-common/entry.S      |    1 +
    Acked-by: Mike Frysinger

    Oh - ia64 wiring looks good.
    Acked-by: Tony Luck

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

28 May, 2011

2 commits

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (45 commits)
    ARM: 6945/1: Add unwinding support for division functions
    ARM: kill pmd_off()
    ARM: 6944/1: mm: allow ASID 0 to be allocated to tasks
    ARM: 6943/1: mm: use TTBR1 instead of reserved context ID
    ARM: 6942/1: mm: make TTBR1 always point to swapper_pg_dir on ARMv6/7
    ARM: 6941/1: cache: ensure MVA is cacheline aligned in flush_kern_dcache_area
    ARM: add sendmmsg syscall
    ARM: 6863/1: allow hotplug on msm
    ARM: 6832/1: mmci: support for ST-Ericsson db8500v2
    ARM: 6830/1: mach-ux500: force PrimeCell revisions
    ARM: 6829/1: amba: make hardcoded periphid override hardware
    ARM: 6828/1: mach-ux500: delete SSP PrimeCell ID
    ARM: 6827/1: mach-netx: delete hardcoded periphid
    ARM: 6940/1: fiq: Briefly document driver responsibilities for suspend/resume
    ARM: 6938/1: fiq: Refactor {get,set}_fiq_regs() for Thumb-2
    ARM: 6914/1: sparsemem: fix highmem detection when using SPARSEMEM
    ARM: 6913/1: sparsemem: allow pfn_valid to be overridden when using SPARSEMEM
    at91: drop at572d940hf support
    at91rm9200: introduce at91rm9200_set_type to specficy cpu package
    at91: drop boot_params and PLAT_PHYS_OFFSET
    ...

    Linus Torvalds
     
  • Russell King
     

27 May, 2011

1 commit

  • By the previous style change, CONFIG_GENERIC_FIND_NEXT_BIT,
    CONFIG_GENERIC_FIND_BIT_LE, and CONFIG_GENERIC_FIND_LAST_BIT are not used
    to test for existence of find bitops anymore.

    Signed-off-by: Akinobu Mita
    Acked-by: Greg Ungerer
    Cc: Arnd Bergmann
    Cc: Russell King
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

25 May, 2011

2 commits


14 May, 2011

1 commit


11 May, 2011

1 commit


14 Apr, 2011

1 commit


08 Apr, 2011

1 commit


05 Apr, 2011

1 commit


01 Apr, 2011

3 commits

  • - Do not trace idle loop which takes a lot time
    - Fix cache handling in generic ftrace code
    - Do not trace lib functions ashldi3, ashrdi3, lshrdi3
    Functions are called from generic ftrace code which
    can't be traced

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Hook up name_to_handle_at, open_by_handle_at, clock_adjtime, syncfs

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Patches:
    "microblaze: Convert to new irq function names"
    sha (4adc192ec7d977c74c750320f289af9d61c1caca)
    and
    "microblaze: Use generic show_interrupts()"
    sha(9d61c18b25726306c9231428c17db42e3ff29ba7)

    should also setup edge/level in irq_set_chip_and_handler_name
    name parameter.

    Error log:
    ~ # cat /proc/interrupts
    CPU0
    2: 2 Xilinx INTC-Xilinx INTC eth0
    3: 2 Xilinx INTC-Xilinx INTC eth0
    4: 241 Xilinx INTC-Xilinx INTC timer
    6: 108 Xilinx INTC-Xilinx INTC serial

    Fixed:
    ~ # cat /proc/interrupts
    CPU0
    2: 2 Xilinx INTC-level eth0
    3: 2 Xilinx INTC-level eth0
    4: 238 Xilinx INTC-edge timer
    6: 108 Xilinx INTC-level serial

    Signed-off-by: Michal Simek
    Acked-by: Thomas Gleixner

    ---

    v2: Fix exchanged edge and level

    Michal Simek
     

31 Mar, 2011

1 commit


30 Mar, 2011

1 commit


29 Mar, 2011

2 commits


24 Mar, 2011

1 commit

  • This introduces CONFIG_GENERIC_FIND_BIT_LE to tell whether to use generic
    implementation of find_*_bit_le() in lib/find_next_bit.c or not.

    For now we select CONFIG_GENERIC_FIND_BIT_LE for all architectures which
    enable CONFIG_GENERIC_FIND_NEXT_BIT.

    But m68knommu wants to define own faster find_next_zero_bit_le() and
    continues using generic find_next_{,zero_}bit().
    (CONFIG_GENERIC_FIND_NEXT_BIT and !CONFIG_GENERIC_FIND_BIT_LE)

    Signed-off-by: Akinobu Mita
    Cc: Greg Ungerer
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

21 Mar, 2011

1 commit

  • * 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (25 commits)
    video: change to new flag variable
    scsi: change to new flag variable
    rtc: change to new flag variable
    rapidio: change to new flag variable
    pps: change to new flag variable
    net: change to new flag variable
    misc: change to new flag variable
    message: change to new flag variable
    memstick: change to new flag variable
    isdn: change to new flag variable
    ieee802154: change to new flag variable
    ide: change to new flag variable
    hwmon: change to new flag variable
    dma: change to new flag variable
    char: change to new flag variable
    fs: change to new flag variable
    xtensa: change to new flag variable
    um: change to new flag variables
    s390: change to new flag variable
    mips: change to new flag variable
    ...

    Fix up trivial conflict in drivers/hwmon/Makefile

    Linus Torvalds
     

17 Mar, 2011

3 commits

  • Replace EXTRA_CFLAGS with ccflags-y.

    Signed-off-by: matt mooney
    Acked-by: WANG Cong
    Signed-off-by: Michal Marek

    matt mooney
     
  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds
     
  • * 'next' of git://git.monstr.eu/linux-2.6-microblaze: (33 commits)
    microblaze: Do not copy reset vectors/manual reset vector setup
    microblaze: Fix _reset function
    microblaze: Fix microblaze init vectors
    microblaze: Fix circular headers dependency when ftrace is enabled.
    microblaze: Fix typo in Kconfig
    microblaze: Add missing export symbols for lib functions
    microblaze: Fix /dev/zero corruption from __clear_user()
    microblaze: Convert irq_chip to new functions
    microblaze: Select GENERIC_HARDIRQS_NO_DEPRECATED
    microblaze: Remove stale irq_chip.end
    microblaze: Fix sparse warnings - signal.c
    microblaze: Fix sparse warning - fault.c
    microblaze: Fix missing microblaze specific syscalls declaration
    microblaze: Fix sparse warnings - cache.c
    microblaze: Fix sparse warning - cpuinfo.h
    microblaze: Fix sparse warning - unwind.c
    microblaze: Fix sparse warning - consistent_alloc function
    microblaze: Fix sparse warnings - ptrace
    microblaze: Fix sparse warning - sw_exceptions
    microblaze: Fix sparse warning - timer.c
    ...

    Linus Torvalds
     

16 Mar, 2011

1 commit

  • …el/git/tip/linux-2.6-tip

    * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
    x86: Clean up apic.c and apic.h
    x86: Remove superflous goal definition of tsc_sync
    x86: dt: Correct local apic documentation in device tree bindings
    x86: dt: Cleanup local apic setup
    x86: dt: Fix OLPC=y/INTEL_CE=n build
    rtc: cmos: Add OF bindings
    x86: ce4100: Use OF to setup devices
    x86: ioapic: Add OF bindings for IO_APIC
    x86: dtb: Add generic bus probe
    x86: dtb: Add support for PCI devices backed by dtb nodes
    x86: dtb: Add device tree support for HPET
    x86: dtb: Add early parsing of IO_APIC
    x86: dtb: Add irq domain abstraction
    x86: dtb: Add a device tree for CE4100
    x86: Add device tree support
    x86: e820: Remove conditional early mapping in parse_e820_ext
    x86: OLPC: Make OLPC=n build again
    x86: OLPC: Remove extra OLPC_OPENFIRMWARE_DT indirection
    x86: OLPC: Cleanup config maze completely
    x86: OLPC: Hide OLPC_OPENFIRMWARE config switch
    ...

    Fix up conflicts in arch/x86/platform/ce4100/ce4100.c

    Linus Torvalds
     

15 Mar, 2011

3 commits

  • Reset vector can be setup by bootloader and kernel doens't need
    to touch it. If you require to setup reset vector, please use
    CONFIG_MANUAL_RESET_VECTOR throught menuconfig.
    It is not possible to setup address 0x0 as reset address because
    make no sense to set it up at all.

    Signed-off-by: Michal Simek
    Signed-off-by: John Williams

    Michal Simek
     
  • If soft reset falls through with no hardware assisted reset, the best
    we can do is jump to the reset vector and see what the bootloader left
    for us.

    Signed-off-by: Michal Simek
    Signed-off-by: John Williams

    Michal Simek
     
  • Microblaze vector table stores several vectors (reset, user exception,
    interrupt, debug exception and hardware exception).
    All these functions can be below address 0x10000. If they are, wrong
    vector table is genarated because jump is not setup from two instructions
    (imm upper 16bit and brai lower 16bit).
    Adding specific offset prevent problem if address is below 0x10000.
    For this case only brai instruction is used.

    Signed-off-by: Michal Simek

    Michal Simek
     

11 Mar, 2011

2 commits

  • Change futex_atomic_op_inuser and futex_atomic_cmpxchg_inatomic
    prototypes to use u32 types for the futex as this is the data type the
    futex core code uses all over the place.

    Signed-off-by: Michel Lespinasse
    Cc: Darren Hart
    Cc: Peter Zijlstra
    Cc: Matt Turner
    Cc: Russell King
    Cc: David Howells
    Cc: Tony Luck
    Cc: Michal Simek
    Cc: Ralf Baechle
    Cc: "James E.J. Bottomley"
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Chris Metcalf
    Cc: Linus Torvalds
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Michel Lespinasse
     
  • The cmpxchg_futex_value_locked API was funny in that it returned either
    the original, user-exposed futex value OR an error code such as -EFAULT.
    This was confusing at best, and could be a source of livelocks in places
    that retry the cmpxchg_futex_value_locked after trying to fix the issue
    by running fault_in_user_writeable().

    This change makes the cmpxchg_futex_value_locked API more similar to the
    get_futex_value_locked one, returning an error code and updating the
    original value through a reference argument.

    Signed-off-by: Michel Lespinasse
    Acked-by: Chris Metcalf [tile]
    Acked-by: Tony Luck [ia64]
    Acked-by: Thomas Gleixner
    Tested-by: Michal Simek [microblaze]
    Acked-by: David Howells [frv]
    Cc: Darren Hart
    Cc: Peter Zijlstra
    Cc: Matt Turner
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: "James E.J. Bottomley"
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Linus Torvalds
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Michel Lespinasse
     

10 Mar, 2011

1 commit

  • Remove compilation failure when ftrace in enabled.

    Error log:
    CC kernel/trace/power-traces.o
    In file included from arch/microblaze/include/asm/irq.h:15,
    from include/linux/irq.h:27,
    from include/asm-generic/hardirq.h:12,
    from arch/microblaze/include/asm/hardirq.h:15,
    from include/linux/hardirq.h:7,
    from include/linux/ftrace_event.h:7,
    from include/trace/ftrace.h:19,
    from include/trace/define_trace.h:96,
    from include/trace/events/power.h:240,
    from kernel/trace/power-traces.c:14:
    include/linux/interrupt.h: In function '__raise_softirq_irqoff':
    include/linux/interrupt.h:413: error: implicit declaration of function 'trace_softirq_raise'
    In file included from include/trace/ftrace.h:554,
    from include/trace/define_trace.h:96,
    from include/trace/events/power.h:240,
    from kernel/trace/power-traces.c:14:
    include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_entry':
    include/trace/events/irq.h:37: error: implicit declaration of function 'check_trace_callback_type_irq_handler_entry'
    include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_exit':
    include/trace/events/irq.h:67: error: implicit declaration of function 'check_trace_callback_type_irq_handler_exit'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_entry':
    include/trace/events/irq.h:112: error: implicit declaration of function 'check_trace_callback_type_softirq_entry'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_exit':
    include/trace/events/irq.h:126: error: implicit declaration of function 'check_trace_callback_type_softirq_exit'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_raise':
    include/trace/events/irq.h:140: error: implicit declaration of function 'check_trace_callback_type_softirq_raise'
    make[5]: *** [kernel/trace/power-traces.o] Error 1
    make[4]: *** [kernel/trace] Error 2
    make[3]: *** [kernel] Error 2

    Suggested-by: Steven Rostedt
    Signed-off-by: Michal Simek

    Michal Simek
     

09 Mar, 2011

9 commits