1. 27 4月, 2008 34 次提交
  2. 26 4月, 2008 6 次提交
    • I
      generic: make optimized inlining arch-opt-in · 765c68bd
      Ingo Molnar 提交于
      Stephen Rothwell reported that linux-next did not build on powerpc64.
      
      make optimized inlining dependent on architecture opt-in.
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      765c68bd
    • I
      x86: add optimized inlining · 60a3cdd0
      Ingo Molnar 提交于
      add CONFIG_OPTIMIZE_INLINING=y.
      
      allow gcc to optimize the kernel image's size by uninlining
      functions that have been marked 'inline'. Previously gcc was
      forced by Linux to always-inline these functions via a gcc
      attribute:
      
       #define inline	inline __attribute__((always_inline))
      
      Especially when the user has already selected
      CONFIG_OPTIMIZE_FOR_SIZE=y this can make a huge difference in
      kernel image size (using a standard Fedora .config):
      
         text    data     bss     dec           hex filename
         5613924  562708 3854336 10030968    990f78 vmlinux.before
         5486689  562708 3854336  9903733    971e75 vmlinux.after
      
      that's a 2.3% text size reduction (!).
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      60a3cdd0
    • B
      ide: sanitize handling of IDE_HFLAG_NO_SET_MODE host flag · 784506cb
      Bartlomiej Zolnierkiewicz 提交于
      * Check for IDE_HFLAG_NO_SET_MODE host flag in ide_set_pio(),
        ide_set_[pio,dma]_mode(), ide_set_xfer_rate() and set_pio_mode().
      
      * Remove no longer needed IDE_HFLAG_NO_SET_MODE host flag checking
        from ide_tune_dma().
      
      * Remove superfluous ->set_pio_mode checking from do_special().
      
      This is a part of preparations for adding 'struct ide_port_ops'.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      784506cb
    • B
      sis5513: fail early for unsupported chipsets · 4764b684
      Bartlomiej Zolnierkiewicz 提交于
      * Factor out chipset family detection from init_chipset_sis5513()
        to sis_find_family().
      
      * Use sis_find_family() in sis5513_init_one() to fail early if the
        chipset is unsupported.
      
      * Keep a local copy sis5513_chipset in sis5513_init_one()
        and set .udma_mask according to chipset family.
      
      * Remove no longer need ->ultra_mask setting from init_hwif_sis5513().
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4764b684
    • B
      it821x: fix kzalloc() failure handling · eb7a07e8
      Bartlomiej Zolnierkiewicz 提交于
      Allocate 'struct it821x_dev' objects for both ports in it821x_init_one().
      
      Fixes potential OOPS in it821x_quirkproc() (uses 'itdev' unconditionally)
      and other problems ('itdev' is needed for correct operation of the driver).
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      eb7a07e8
    • B
      qd65xx: use IDE_HFLAG_SINGLE host flag · 79472b6e
      Bartlomiej Zolnierkiewicz 提交于
      * Set IDE_HFLAG_SINGLE host flag in qd_probe() for QD6500 and QD6580
        with the second port disabled.
      
      * Check for IDE_HFLAG_SINGLE in qd6580_port_init_devs() instead of
        using cached value of QD6580 Control register.
      
      * Don't cache QD6580 Control register value in hwif->config_data
        (bits 8-15) and remove no longer needed QD_CONTROL() macro.
      
      * Cache QD65xx base address in hwif->config_data (bits 8-15)
        instead of hwif->select_data.
      
      * Set hwif->config_data in qd_probe() and remove qd_setup() helper.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      79472b6e