1. 13 3月, 2014 7 次提交
  2. 20 2月, 2014 1 次提交
    • G
      of: Move testcase FDT data into drivers/of · b5190516
      Grant Likely 提交于
      The testcase data is usable by any platform. This patch moves it into
      the drivers/of directory so it can be included by any architecture.
      
      Using the test cases requires manually adding #include <testcases.dtsi>
      to the end of the boards .dtsi file and enabling CONFIG_OF_SELFTEST. Not
      pretty though. A useful project would be to make the testcase code
      easier to execute.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      b5190516
  3. 19 2月, 2014 5 次提交
  4. 18 2月, 2014 1 次提交
  5. 15 2月, 2014 1 次提交
  6. 14 2月, 2014 16 次提交
  7. 12 2月, 2014 1 次提交
  8. 11 2月, 2014 7 次提交
  9. 10 2月, 2014 1 次提交
    • W
      ARM: 7955/1: spinlock: ensure we have a compiler barrier before sev · 7c8746a9
      Will Deacon 提交于
      When unlocking a spinlock, we require the following, strictly ordered
      sequence of events:
      
      	<barrier>	/* dmb */
      	<unlock>
      	<barrier>	/* dsb */
      	<sev>
      
      Whilst the code does indeed reflect this in terms of the architecture,
      the final <barrier> + <sev> have been contracted into a single inline
      asm without a "memory" clobber, therefore the compiler is at liberty to
      reorder the unlock to the end of the above sequence. In such a case,
      a waiting CPU may be woken up before the lock has been unlocked, leading
      to extremely poor performance.
      
      This patch reworks the dsb_sev() function to make use of the dsb()
      macro and ensure ordering against the unlock.
      
      Cc: <stable@vger.kernel.org>
      Reported-by: NMark Rutland <mark.rutland@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7c8746a9