summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/iutil.py b/iutil.py
index 77138c9a1..a53f9a874 100644
--- a/iutil.py
+++ b/iutil.py
@@ -366,9 +366,9 @@ def isMactel():
mactel = False
return mactel
-def hasNX():
- """Convenience function to see if a machine supports the nx bit. We want
- to install an smp kernel if NX is present since NX requires PAE (#173245)"""
+def cpuFeatureFlags():
+ """Convenience function to get CPU feature flags from /proc/cpuinfo."""
+
if rhpl.getArch() not in ("i386", "x86_64"):
return False
f = open("/proc/cpuinfo", "r")
@@ -382,10 +382,9 @@ def hasNX():
flags = line[:-1].split(":", 1)[1]
# and split them
flst = flags.split(" ")
- if "nx" in flst:
- return True
- return False
-
+ return flst
+
+ return []
def writeRpmPlatform(root="/"):
import rhpl.arch