1. 13 11月, 2013 14 次提交
  2. 09 11月, 2013 1 次提交
  3. 07 11月, 2013 5 次提交
  4. 06 11月, 2013 1 次提交
  5. 05 11月, 2013 3 次提交
  6. 04 11月, 2013 2 次提交
  7. 01 11月, 2013 1 次提交
  8. 31 10月, 2013 2 次提交
    • S
      of: Move definition of of_find_next_cache_node into common code. · a3e31b45
      Sudeep KarkadaNagesha 提交于
      Since the definition of_find_next_cache_node is architecture independent,
      the existing definition in powerpc can be moved to driver/of/base.c
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Signed-off-by: NSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      a3e31b45
    • G
      percpu: fix this_cpu_sub() subtrahend casting for unsigneds · bd09d9a3
      Greg Thelen 提交于
      this_cpu_sub() is implemented as negation and addition.
      
      This patch casts the adjustment to the counter type before negation to
      sign extend the adjustment.  This helps in cases where the counter type
      is wider than an unsigned adjustment.  An alternative to this patch is
      to declare such operations unsupported, but it seemed useful to avoid
      surprises.
      
      This patch specifically helps the following example:
        unsigned int delta = 1
        preempt_disable()
        this_cpu_write(long_counter, 0)
        this_cpu_sub(long_counter, delta)
        preempt_enable()
      
      Before this change long_counter on a 64 bit machine ends with value
      0xffffffff, rather than 0xffffffffffffffff.  This is because
      this_cpu_sub(pcp, delta) boils down to this_cpu_add(pcp, -delta),
      which is basically:
        long_counter = 0 + 0xffffffff
      
      Also apply the same cast to:
        __this_cpu_sub()
        __this_cpu_sub_return()
        this_cpu_sub_return()
      
      All percpu_test.ko passes, especially the following cases which
      previously failed:
      
        l -= ui_one;
        __this_cpu_sub(long_counter, ui_one);
        CHECK(l, long_counter, -1);
      
        l -= ui_one;
        this_cpu_sub(long_counter, ui_one);
        CHECK(l, long_counter, -1);
        CHECK(l, long_counter, 0xffffffffffffffff);
      
        ul -= ui_one;
        __this_cpu_sub(ulong_counter, ui_one);
        CHECK(ul, ulong_counter, -1);
        CHECK(ul, ulong_counter, 0xffffffffffffffff);
      
        ul = this_cpu_sub_return(ulong_counter, ui_one);
        CHECK(ul, ulong_counter, 2);
      
        ul = __this_cpu_sub_return(ulong_counter, ui_one);
        CHECK(ul, ulong_counter, 1);
      Signed-off-by: NGreg Thelen <gthelen@google.com>
      Acked-by: NTejun Heo <tj@kernel.org>
      Acked-by: NJohannes Weiner <hannes@cmpxchg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bd09d9a3
  9. 30 10月, 2013 7 次提交
  10. 29 10月, 2013 4 次提交
    • T
      ALSA: ak4114: Fix wrong register array size · e12483e0
      Takashi Iwai 提交于
      The size of the register cache array is actually 6 instead of 7,
      as it caches up to AK4114_REG_INT1_MASK.  This resulted in unexpected
      access out of array range, although most of them aren't so serious
      (just reading one more byte on the stack at snd_ak4114_create()).
      
      Also, the check of cache size was wrongly done by checking with
      sizeof() instead of ARRAY_SIZE().  Fixed this together.
      
      (And yes, hardcoded numbers are bad, but I keep the coding style as is
       for making it clear what this patch actually does.)
      
      Spotted by coverity among several CIDs, e.g. 711621.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e12483e0
    • P
      perf: Fix perf ring buffer memory ordering · bf378d34
      Peter Zijlstra 提交于
      The PPC64 people noticed a missing memory barrier and crufty old
      comments in the perf ring buffer code. So update all the comments and
      add the missing barrier.
      
      When the architecture implements local_t using atomic_long_t there
      will be double barriers issued; but short of introducing more
      conditional barrier primitives this is the best we can do.
      Reported-by: NVictor Kaplansky <victork@il.ibm.com>
      Tested-by: NVictor Kaplansky <victork@il.ibm.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: michael@ellerman.id.au
      Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Michael Neuling <mikey@neuling.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: anton@samba.org
      Cc: benh@kernel.crashing.org
      Link: http://lkml.kernel.org/r/20131025173749.GG19466@laptop.lanSigned-off-by: NIngo Molnar <mingo@kernel.org>
      bf378d34
    • J
      regmap: add SPMI support · a01779f8
      Josh Cartwright 提交于
      Add basic support for the System Power Management Interface (SPMI) bus.
      This is a simple implementation which only implements register accesses
      via the Extended Register Read/Write Long commands.
      Signed-off-by: NJosh Cartwright <joshc@codeaurora.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      a01779f8
    • W
      NFS: add support for multiple sec= mount options · 4d4b69dd
      Weston Andros Adamson 提交于
      This patch adds support for multiple security options which can be
      specified using a colon-delimited list of security flavors (the same
      syntax as nfsd's exports file).
      
      This is useful, for instance, when NFSv4.x mounts cross SECINFO
      boundaries. With this patch a user can use "sec=krb5i,krb5p"
      to mount a remote filesystem using krb5i, but can still cross
      into krb5p-only exports.
      
      New mounts will try all security options before failing.  NFSv4.x
      SECINFO results will be compared against the sec= flavors to
      find the first flavor in both lists or if no match is found will
      return -EPERM.
      Signed-off-by: NWeston Andros Adamson <dros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      4d4b69dd