29 Apr, 2008

40 commits

  • Add a proper extern for late_time_init in include/linux/init.h

    Signed-off-by: Adrian Bunk
    Acked-by: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: john stultz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Remove the macro get_personality, use ->personality instead.

    Cc: Christoph Hellwig
    Cc: David Howells
    Cc: Bryan Wu
    Signed-off-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • Add a proper prototype for __do_softirq() in include/linux/interrupt.h

    Signed-off-by: Adrian Bunk
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Almost all implementations of pci_iomap() in the kernel, including the generic
    lib/iomap.c one, copies the content of a struct resource into unsigned long's
    which will break on 32 bits platforms with 64 bits resources.

    This fixes all definitions of pci_iomap() to use resource_size_t. I also
    "fixed" the 64bits arch for consistency.

    Signed-off-by: Benjamin Herrenschmidt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (35 commits)
    siimage: coding style cleanup (take 2)
    ide-cd: clean up cdrom_analyze_sense_data()
    ide-cd: fix test unsigned var < 0
    ide: add TSSTcorp CDDVDW SH-S202H to ivb_list[]
    piix: add Asus Eee 701 controller to short cable list
    ARM: always select HAVE_IDE
    remove the broken ETRAX_IDE driver
    ide: remove ->dma_prdtable field from ide_hwif_t
    ide: remove ->dma_vendor{1,3} fields from ide_hwif_t
    scc_pata: add ->dma_host_set and ->dma_start methods
    ide: skip "VLB sync" if host uses MMIO
    ide: add ide_pad_transfer() helper
    ide: remove ->INW and ->OUTW methods
    ide: use IDE I/O helpers directly in ide_tf_{load,read}()
    ns87415: add ->tf_read method
    scc_pata: add ->tf_{load,read} methods
    ide-h8300: add ->tf_{load,read} methods
    ide-cris: add ->tf_{load,read} methods
    ide: add ->tf_load and ->tf_read methods
    ide: move ide_tf_{load,read} to ide-iops.c
    ...

    Linus Torvalds
     
  • It's plain wrong for PCMCIA to select HAVE_IDE that implies e.g. the
    availability of an asm/ide.h

    It turns out this was done for ARM, and we can simply always select
    HAVE_IDE on ARM instead of manually tracking which platforms might
    possible have an IDE controller directly or indirectly.

    Signed-off-by: Adrian Bunk
    Cc: Russell King
    Cc: Sam Ravnborg
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Adrian Bunk
     
  • The 64-bit vDSO image is in a special ".vdso" section for no reason
    I can determine. Furthermore, the location of the vdso_end symbol
    includes some wrongly-calculated padding space in the image, which
    is then (correctly) rounded to page size, resulting in an extra page
    of zeros in the image mapped in to user processes.

    This changes it to put the vdso.so image into normal initdata as we
    have always done for the 32-bit vDSO images. The extra padding is
    gone, so the user VMA is one page instead of two. The image that
    was already copied around at boot time is now in initdata, so we
    recover that wasted space after boot.

    Signed-off-by: Roland McGrath
    Signed-off-by: Linus Torvalds

    Roland McGrath
     
  • We checked the hardware freq with OS cached freq value in get_cur_freqon_cpu().

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Thomas Renninger
    Signed-off-by: Dave Jones

    Venkatesh Pallipadi
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (45 commits)
    [MIPS] Pb1200/DBAu1200: move platform code to its proper place
    [MIPS] Fix handling of trap and breakpoint instructions
    [MIPS] Pb1200: do register SMC 91C111
    [MIPS] DBAu1200: fix bad SMC 91C111 resource size
    [NET] Kconfig: Rename MIKROTIK_RB500 -> MIKROTIK_RB532
    [MIPS] IP27: Fix build bug due to missing include
    [MIPS] Fix some sparse warnings on traps.c and irq-msc01.c
    [MIPS] cevt-gt641xx: Kill unnecessary include
    [MIPS] DS1287: Add clockevent driver
    [MIPS] add DECstation I/O ASIC clocksource
    [MIPS] rbtx4938: minor cleanup
    [MIPS] Alchemy: kill unused PCI_IRQ_TABLE_LOOKUP macro
    [MIPS] rbtx4938: misc cleanups
    [MIPS] jmr3927: use generic txx9 gpio
    [MIPS] rbhma4500: use generic txx9 gpio
    [MIPS] generic txx9 gpio support
    [MIPS] make fallback gpio.h gpiolib-friendly
    [MIPS] unexport null_perf_irq() and make it static
    [MIPS] unexport rtc_mips_set_time()
    [MIPS] unexport copy_from_user_page()
    ...

    Linus Torvalds
     
  • This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where
    MSI-X vector allocation will eventually fail. The cause is the new
    bit array tracking used vectors is not getting cleared properly on
    IRQ destruction on the 32-bit APIC code.

    This can be seen easily using the ixgbe 10 GbE driver on multi-core
    systems by simply loading and unloading the driver a few times.
    Depending on the number of available vectors on the host system, the
    MSI-X allocation will eventually fail, and the driver will only be
    able to use legacy interrupts.

    I am generating the same patch for both stable trees for 2.6.24 and
    2.6.25.

    Signed-off-by: Peter P Waskiewicz Jr
    Signed-off-by: Linus Torvalds

    PJ Waskiewicz
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • * EXTRA_CFLAGS do not apply for *.S
    * don't bother with symlinks to ../lib/mem*.S, just add ../lib/mem*.o
    to object list

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Acked-by: David Howells
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    sparc: video drivers: add facility level
    sparc: tcx.c make tcx_init and tcx_exit static
    sparc: ffb.c make ffb_init and ffb_exit static
    sparc: cg14.c make cg14_init and cg15_exit static
    sparc: bw2.c fix bw2_exit
    sparc64: Fix accidental syscall restart on child return from clone/fork/vfork.
    sparc64: Clean up handling of pt_regs trap type encoding.
    sparc: Remove old style signal frame support.
    sparc64: Kill bogus RT_ALIGNEDSZ macro from signal.c
    sparc: sunzilog.c remove unused argument
    sparc: fix drivers/video/tcx.c warning
    sparc64: Kill unused local ISA bus layer.
    input: Rewrite sparcspkr device probing.
    sparc64: Do not ignore 'pmu' device ranges.
    sparc64: Kill ISA_FLOPPY_WORKS code.
    sparc64: Kill CONFIG_SPARC32_COMPAT
    sparc64: Cleanups and corrections for arch/sparc64/Kconfig
    sparc64: Fix wedged irq regression.

    Linus Torvalds
     
  • Since both the IDE interface and SMC 91C111 Ethernet chip are on-board
    devices, not SOC devices, move the platform device registration form the
    common to the board specific code.

    While at it, remove semicolon (which didn't break compilation only by
    chance) from the AU1XXX_ATA_DDMA_REQ macro and do some renaming:

    - change 'au1200_ide0_' variable name prefix to the mere 'ide_';

    - change 'smc91x_' variable name prefix to 'smc91c111_' since that's the
    name of the chip used on the boards;

    - drop 'AU1XXX_' prefix from the names of macros describing IDE and Ethernet
    on-board devices;

    - change 'SMC91111_' to 'SMC91C111_', change 'IRQ' to 'INT' in the names of
    the macros describing the Ethernet chip for consistency with the IDE
    macros;

    - change 'ATA_' to 'IDE_' and 'OFFSET' to 'SHIFT' (since this value is
    indeed a shift count) in the names of the macros describing the IDE
    interface.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Ralf Baechle

    Sergei Shtylyov
     
  • With fixes and cleanups from Atsushi Nemoto (anemo@mba.ocn.ne.jp).

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Pb1200 does have SMC 91C111 Ethernet chip on board but the platform code
    did not register it, so one couldn't mount NFS...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Ralf Baechle

    Sergei Shtylyov
     
  • The on-board SMC 91C111 chip only decodes 16 bytes of memory (obviously, it
    can not decode a whole megabyte starting from address 0x19000300).

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Ralf Baechle

    Sergei Shtylyov
     
  • * Declare board_bind_eic_interrupt, board_watchpoint_handler in traps.h
    * Make msc_bind_eic_interrupt static and fix its argument types.
    * Make msc_levelirq_type, msc_edgeirq_type static.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Signed-off-by: Yoichi Yuasa
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • Add DECstation I/O ASIC clocksource

    Signed-off-by: Yoichi Yuasa
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • Do not initialize res->parent for platform device.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • * Do not use non-standard I/O accessors, such as reg_rd08, etc.
    * Kill unnecessary wbflush()
    * Kill tx4938_mips.h
    * Kill unnecessary includes

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Use generic txx9 gpio (and gpiolib) for JMR3927 board.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Use generic txx9 gpio (and gpiolib) for RBHMA4500 board.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • This is a board-independent TXx9 gpio API implementation using gpiolib.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • This patch unexports the null_perf_irq() symbol, and simultaneously
    makes this function static.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • No users for the rtc_mips_set_time() routine exist outside of the
    core kernel code. Therefore, EXPORT_SYMBOL(rtc_mips_set_time) is
    useless, and this patch removes it.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • No users for the copy_from_user_page() routine exist outside of the
    core kernel code. Therefore, EXPORT_SYMBOL(copy_from_user_page) is
    useless, and this patch removes it.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • The copy_to_user_page() function is called only in the core kernel
    code. Therefore, there is no need to export it. This patch removes
    EXPORT_SYMBOL(copy_to_user_page).

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • The copy_user_highpage() routine has no users outside of the
    core kernel code, so exporting this symbol is pointless.
    This patch removes EXPORT_SYMBOL(copy_user_highpage).

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • Move the code registering the Alchemy UART platform devices from
    drivers/serial/ to its proper place, into the Alchemy platform code. Fix
    the related Kconfig entry, while at it...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Ralf Baechle

    Sergei Shtylyov
     
  • Go thru the Alchemy code and hunt down every unneeded #include, #define, and
    extern (some of which refer to already long dead functions).

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Ralf Baechle

    Sergei Shtylyov
     
  • The following variables defined in arch/mips/mips-boards/malta/malta_int.c
    can become static: msc_irqmap[], msc_nr_irqs, msc_eicirqmap[], and
    msc_nr_eicirqs. This patch makes them static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • The array standard_io_resources[] needs not to be exposed in the kernel
    global namespace. This patch makes it static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • There is no need for the plat_perf_setup() function to be global,
    so make it static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • Neither the mdesc[] array nor the prom_getmdesc() function need to
    be global. This patch makes them static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • This change makes the needlessly global function mips_ejtag_setup() static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev
     
  • This change makes the needlessly global function mips_nmi_setup() static.

    Successfully build-tested using default configs for Malta, Atlas
    and SEAD boards.

    Runtime test successfully performed by booting the Malta 4Kc board
    up to the shell prompt.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Ralf Baechle

    Dmitri Vorobiev