This now prints both HW feature status (exists, enabled / disabled) and SW status (used / not used). Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@xxxxxxxxxxxx> --- arch/arc/kernel/setup.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index feb90093e6b1..e465cae3f661 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -270,10 +270,17 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len) #ifdef __ARC_UNALIGNED__ ua = 1; #endif - n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s%s", + n += i = scnprintf(buf + n, len - n, "%s%s%s%s", IS_AVAIL2(cpu->isa.atomic, "atomic ", CONFIG_ARC_HAS_LLSC), - IS_AVAIL2(cpu->isa.ldd, "ll64 ", CONFIG_ARC_HAS_LL64), - IS_AVAIL1(cpu->isa.unalign, "unalign "), IS_USED_RUN(ua)); + IS_AVAIL2(cpu->isa.ldd, "ll64 ", CONFIG_ARC_HAS_LL64)); + + if (cpu->isa.unalign) { + i += scnprintf(buf + n, len - n, "unalign (%s, %s)", + IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) ? + "enabled" : "disabled", + ua ? "used" : "not used"); + n += i; + } if (i) n += scnprintf(buf + n, len - n, "\n\t\t: "); -- 2.14.5 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-snps-arc