Skip to contentSkip to conversation

ppc: Added macro to test for specific SVR revision

PATCH New Kumar Gala 1 participant 1 message Dec 3, 2009

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH v2 1/1 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.

---
* Removed extra whitespace per Wolfgang feedback
* Fixed up commit message

 include/asm-ppc/processor.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/asm-ppc/processor.h +3 -0
index f61778f..c6da411 100644
@@ -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
  */
Signature · 1 line
1.6.0.6