1. 27 4月, 2008 37 次提交
  2. 26 4月, 2008 3 次提交
    • 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