10 May, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fix stacktrace simplification fallout.
    sh: SH7760 DMABRG support.
    sh: clockevent/clocksource/hrtimers/nohz TMU support.
    sh: Truncate MAX_ACTIVE_REGIONS for the common case.
    rtc: rtc-sh: Fix rtc_dev pointer for rtc_update_irq().
    sh: Convert to common die chain.
    sh: Wire up utimensat syscall.
    sh: landisk mv_nr_irqs definition.
    sh: Fixup ndelay() xloops calculation for alternate HZ.
    sh: Add 32-bit opcode feature CPU flag.
    sh: Fix PC adjustments for varying opcode length.
    sh: Support for SH-2A 32-bit opcodes.
    sh: Kill off redundant __div64_32 symbol export.
    sh: Share exception vector table for SH-3/4.
    sh: Always define TRAPA_BUG_OPCODE.
    sh: __GFP_REPEAT for pte allocations, too.
    rtc: rtc-sh: Fix up dev_dbg() warnings.
    sh: generic quicklist support.

    Linus Torvalds
     

09 May, 2007

20 commits

  • When the stacktrace simplification changes went in the function
    definition on SH got skipped, fix it up so things build again.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • The DMABRG is a special DMA unit within the SH7760 which does data
    transfers from main memory to Audio units and USB shared memory.
    It has 3 IRQ lines which generate 10 events, which have to be masked
    unmasked and acked in a single 32bit register. It works independently
    from the tradition SH DMAC, but blocks usage of DMAC channel 0.

    This patch adds 2 functions to associate callbacks with DMABRG events
    and initialization.

    Signed-off-by: Manuel Lauss
    Signed-off-by: Paul Mundt

    Manuel Lauss
     
  • This adds basic support for clockevents and clocksources,
    presently only implemented for TMU-based systems (which
    are the majority of SH-3 and SH-4 systems).

    The old NO_IDLE_HZ implementation is also dropped completely,
    the only users of this were on TMU-based systems anyways.

    More work needs to be done to generalize the TMU handling,
    in that the current implementation is rather tied to the
    notion of TMU0 and TMU1 utilization.

    Additionally, as more SH timers switch over to this scheme,
    we'll be able to gut most of the remaining system timer
    infrastructure that existed before.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Many files include the filename at the beginning, serveral used a wrong one.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Adrian Bunk

    Uwe Kleine-König
     
  • Most SH platforms aren't going to need more than a single active
    region, ones that need more can pad this out as necessary.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This went in immediately after SH added the die chain notifiers,
    so move over to that instead..

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Fix up the landisk build. When NR_IRQS was removed, landisk got missed
    in the updates. Update the machvec for the landisk IRQs to get it
    working again.

    Signed-off-by: kogiidena
    Signed-off-by: Paul Mundt

    kogiidena
     
  • Currently the xloops calculation in ndelay() gets set to 0 when
    calculated with HZ=250, fix up how we do the HZ factoring in order
    to get this right for differing values.

    Signed-off-by: kogiidena
    Signed-off-by: Paul Mundt

    kogiidena
     
  • Add a CPU flag for the CPUs that support 32-bit opcodes, which
    gets passed down to userspace.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • There are a few different cases for figuring out how to
    size the instruction. We read in the instruction located
    at regs->pc - 4 when rewinding the opcode to figure out if
    there's a 32-bit opcode before the faulting instruction, with
    a default of a - 2 adjustment on a mismatch. In practice this
    works for the cases where pc - 4 is just another 16-bit opcode,
    or we happen to have a 32-bit and a 16-bit immediately
    preceeding the pc value.

    In the cases where we aren't rewinding, this is much less ugly..

    We also don't bother fixing up the places where we're explicitly
    dealing with 16-bit instructions, since this might lead to
    confusion regarding the encoding size possibilities on other
    CPU variants.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • SH-2A supports both 16 and 32-bit instructions, add a simple helper
    for figuring out the instruction size in the places where there are
    hardcoded 16-bit assumptions.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • modpost noticed that __div64_32 was being exported twice:

    WARNING: lib/built-in: '__div64_32' exported twice. Previous export was
    in arch/sh/kernel/built-in.ko

    kill off the duplicate.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • The only difference between these at the moment are the FPU
    exceptions, and these are hidden away under CONFIG_SH_FPU
    (which is only set for the SH-4 case anyways..).

    This consolidates the two tables, and updates SH-4 to use
    the updated copy.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This moves SH over to the generic quicklists. As per x86_64,
    we have special mappings for the PGDs, so these go on their
    own list..

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Add IRQF_IRQPOLL on each timer interrupt on SH2.

    Signed-off-by: Bernhard Walle
    Cc: Paul Mundt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     
  • Remove includes of where it is not used/needed.
    Suggested by Al Viro.

    Builds cleanly on x86_64, i386, alpha, ia64, powerpc, sparc,
    sparc64, and arm (all 59 defconfigs).

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The console subsystem already has an idea of a boot console, using the
    CON_BOOT flag. The implementation has some flaws though. The major
    problem is that presence of a boot console makes register_console() ignore
    any other console devices (unless explicitly specified on the kernel
    command line).

    This patch fixes the console selection code to *not* consider a boot
    console a full-featured one, so the first non-boot console registering will
    become the default console instead. This way the unregister call for the
    boot console in the register_console() function actually triggers and the
    handover from the boot console to the real console device works smoothly.
    Added a printk for the handover, so you know which console device the
    output goes to when the boot console stops printing messages.

    The disable_early_printk() call is obsolete with that patch, explicitly
    disabling the early console isn't needed any more as it works automagically
    with that patch.

    I've walked through the tree, dropped all disable_early_printk() instances
    found below arch/ and tagged the consoles with CON_BOOT if needed. The
    code is tested on x86, sh (thanks to Paul) and mips (thanks to Ralf).

    Changes to last version: Rediffed against -rc3, adapted to mips cleanups by
    Ralf, fixed "udbg-immortal" cmd line arg on powerpc.

    Signed-off-by: Gerd Hoffmann
    Acked-by: Paul Mundt
    Acked-by: Ralf Baechle
    Cc: Andi Kleen
    Cc: Alan Cox
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Gerd Hoffmann
     
  • Simplify the stacktrace code:

    - remove the unused task argument to save_stack_trace, it's always
    current
    - remove the all_contexts flag, it's alwasy 0

    Signed-off-by: Christoph Hellwig
    Cc: Paul Mundt
    Cc: Ralf Baechle
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Cc: Andi Kleen
    Cc: Akinobu Mita
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Use SLAB_PANIC and delete duplicated panic().

    Signed-off-by: Akinobu Mita
    Cc: Ian Molton
    Cc: David Howells
    Cc: Andi Kleen
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

07 May, 2007

19 commits