ARC: fix actionpoints configuration detection
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Mon, 4 Feb 2019 18:41:51 +0000 (21:41 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 21 Feb 2019 19:03:16 +0000 (11:03 -0800)
Fix reversed logic while actionpoints configuration (full/min)
detection.

Fixies: 7dd380c338f1e ("ARC: boot log: print Action point details")
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/setup.c

index feb90093e6b1354eaf60064d7d961c736ded3108..def19b0ef8c6d284ceb252fdbc51c33901296bb1 100644 (file)
@@ -212,7 +212,7 @@ static void read_arc_build_cfg_regs(void)
        READ_BCR(ARC_REG_AP_BCR, ap);
        if (ap.ver) {
                cpu->extn.ap_num = 2 << ap.num;
-               cpu->extn.ap_full = !!ap.min;
+               cpu->extn.ap_full = !ap.min;
        }
 
        READ_BCR(ARC_REG_SMART_BCR, bcr);