1. 24 10月, 2013 1 次提交
    • H
      s390/bitops: remove CONFIG_SMP / simplify non-atomic bitops · 370b0b5f
      Heiko Carstens 提交于
      Remove CONFIG_SMP from bitops code. This reduces the C code significantly
      but also generates better code for the SMP case.
      
      This means that for !CONFIG_SMP set_bit() and friends now also have
      compare and swap semantics (read: more code). However nobody really cares
      for !CONFIG_SMP and this is the trade-off to simplify the SMP code which we
      do care about.
      
      The non-atomic bitops like __set_bit() now generate also better code
      because the old code did not have a __builtin_contant_p() check for the
      CONFIG_SMP case and therefore always generated the inline assembly variant.
      However the inline assemblies for the non-atomic case now got completely
      removed since gcc can produce better code, which accesses less memory
      operands.
      
      test_bit() got also a bit simplified since it did have a
      __builtin_constant_p() check, however two identical code pathes for each
      case (written differently).
      
      In result this mainly reduces the to be maintained code but is not very
      relevant for code generation, since there are not many non-atomic bitops
      usages that we care about.
      (code reduction defconfig kernel image before/after: 560 bytes).
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      370b0b5f
  2. 20 7月, 2012 1 次提交
    • H
      s390/comments: unify copyright messages and remove file names · a53c8fab
      Heiko Carstens 提交于
      Remove the file name from the comment at top of many files. In most
      cases the file name was wrong anyway, so it's rather pointless.
      
      Also unify the IBM copyright statement. We did have a lot of sightly
      different statements and wanted to change them one after another
      whenever a file gets touched. However that never happened. Instead
      people start to take the old/"wrong" statements to use as a template
      for new files.
      So unify all of them in one go.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      a53c8fab
  3. 26 3月, 2009 2 次提交