aboutsummaryrefslogtreecommitdiff
path: root/hdata/cpu-common.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-08-10 16:02:50 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-11 16:37:25 +1000
commit78e1d91725deb70898d4960837cad6f721c35fa2 (patch)
tree7d8e092c076ba2b665c76a9d7d918cfbd6313201 /hdata/cpu-common.c
parent8bdfaa24f88bd8800385a6997bb178dfdd970648 (diff)
downloadskiboot-78e1d91725deb70898d4960837cad6f721c35fa2.zip
skiboot-78e1d91725deb70898d4960837cad6f721c35fa2.tar.gz
skiboot-78e1d91725deb70898d4960837cad6f721c35fa2.tar.bz2
hdat: Make is_power9n() global
This splits out is_power9n() so it can be used elsewhere. It also adds a check for for POWER9 so the function does more of what it's name suggests (and so the caller doesn't need to do it). Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/cpu-common.c')
-rw-r--r--hdata/cpu-common.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hdata/cpu-common.c b/hdata/cpu-common.c
index a1a9312..f40d08b 100644
--- a/hdata/cpu-common.c
+++ b/hdata/cpu-common.c
@@ -21,18 +21,6 @@
#include "hdata.h"
-static bool is_power9n(uint32_t version)
-{
- /*
- * Bit 13 tells us:
- * 0 = Scale out (aka Nimbus)
- * 1 = Scale up (aka Cumulus)
- */
- if ((version >> 13) & 1)
- return false;
- return true;
-}
-
struct dt_node * add_core_common(struct dt_node *cpus,
const struct sppcia_cpu_cache *cache,
const struct sppaca_cpu_timebase *tb,