瀏覽代碼

ppc: Added macro to test for specific SVR revision

Various SoC errata are specific to a given revision of silicon. This
patch gives us a simple macro to use when doing such tests.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Kumar Gala 15 年之前
父節點
當前提交
effe4973f2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm-ppc/processor.h

+ 3 - 0
include/asm-ppc/processor.h

@@ -992,6 +992,9 @@
 #endif
 #endif
 
+#define IS_SVR_REV(svr, maj, min) \
+	((SVR_MAJ(svr) == maj) && (SVR_MIN(svr) == min))
+
 /*
  * SVR_SOC_VER() Version Values
  */