is_s390 was moved to python-linux-procfs a long time ago, it's safe to
remove it from tuna and use the version in python-linux-procfs
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
tuna/tuna.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/tuna/tuna.py b/tuna/tuna.py
index 1e39222d86ea..0cd8c3f9bf77 100755
--- a/tuna/tuna.py
+++ b/tuna/tuna.py
@@ -317,19 +317,13 @@ def affinity_remove_cpus(affinity, cpus, nr_cpus):
affinity = list(set(affinity) - set(cpus))
return affinity
-# True if machine is s390 or s390x
-def is_s390():
- machine = platform.machine()
- if re.search('s390', machine):
- return True
- return False
# Shound be moved to python_linux_procfs.interrupts, shared with
interrupts.parse_affinity, etc.
def parse_irq_affinity_filename(filename, nr_cpus):
try:
f = open("/proc/irq/%s" % filename)
except IOError as err:
- if is_s390():
+ if procfs.is_s390():
print("This operation is not supported on s390", file=sys.stderr)
print("tuna: %s" % err, file=sys.stderr)
sys.exit(2)
--
2.31.1