1. 23 5月, 2011 6 次提交
    • P
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      [ Fixed up some incorrect #include placements, and added some
        non-network drivers and the fib_trie.c case    - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      70c71606
    • L
      Give up on pushing CC_OPTIMIZE_FOR_SIZE · 281dc5c5
      Linus Torvalds 提交于
      I still happen to believe that I$ miss costs are a major thing, but
      sadly, -Os doesn't seem to be the solution.  With or without it, gcc
      will miss some obvious code size improvements, and with it enabled gcc
      will sometimes make choices that aren't good even with high I$ miss
      ratios.
      
      For example, with -Os, gcc on x86 will turn a 20-byte constant memcpy
      into a "rep movsl".  While I sincerely hope that x86 CPU's will some day
      do a good job at that, they certainly don't do it yet, and the cost is
      higher than a L1 I$ miss would be.
      
      Some day I hope we can re-enable this.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      281dc5c5
    • L
      Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6 · 71a86384
      Linus Torvalds 提交于
      * 'viafb-next' of git://github.com/schandinat/linux-2.6: (24 commits)
        viafb: Automatic OLPC XO-1.5 configuration
        viafb: remove unused CEA mode
        viafb: try to map less memory in case of failure
        viafb: use write combining for video ram
        viafb: add X server compatibility mode
        viafb: reduce OLPC refresh a bit
        viafb: fix OLPC XO 1.5 device connection
        viafb: fix OLPC DCON refresh rate
        viafb: delete clock and PLL initialization
        viafb: replace custom return values
        viafb: some small cleanup for global variables
        viafb: gather common good, old VGA initialization in one place
        viafb: add engine clock support
        viafb: add VIA slapping capability
        viafb: split clock and PLL code to an extra file
        viafb: add primary/secondary clock on/off switches
        viafb: add clock source selection and PLL power management support
        viafb: prepare for PLL separation
        viafb: call viafb_get_clk_value only in viafb_set_vclock
        viafb: remove unused max_hres/vres
        ...
      71a86384
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 · 17238005
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
        [PARISC] wire up syncfs syscall
        [PARISC] wire up the fhandle syscalls
        [PARISC] wire up clock_adjtime syscall
        [PARISC] wire up fanotify syscalls
        [PARISC] prevent speculative re-read on cache flush
        [PARISC] only make executable areas executable
        [PARISC] fix pacache .size with new binutils
      17238005
    • H
      net: add missing prefetch.h include · 34ea646c
      Heiko Carstens 提交于
      Fixes build errors on s390 and probably other archs as well:
      
        In file included from net/ipv4/ip_forward.c:32:0:
        include/net/udp.h: In function 'udp_csum_outgoing':
        include/net/udp.h:141:2: error: implicit declaration of function 'prefetch'
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      34ea646c
    • H
      fs: add missing prefetch.h include · 9ce6e0be
      Heiko Carstens 提交于
      Fixes this build error on s390 and probably other archs as well:
      
        fs/inode.c: In function 'new_inode':
        fs/inode.c:894:2: error: implicit declaration of function 'spin_lock_prefetch'
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      [ Happens on architectures that don't define their own prefetch
        functions in <asm/processor.h>, and instead rely on the default
        ones in <linux/prefetch.h>   - Linus]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9ce6e0be
  2. 22 5月, 2011 2 次提交
  3. 21 5月, 2011 28 次提交
  4. 20 5月, 2011 4 次提交