From: Eugeniy Paltsev Date: Mon, 4 Feb 2019 18:41:51 +0000 (+0300) Subject: ARC: fix actionpoints configuration detection X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cdf92962adb0cb23efc3c8bcf6465d16ab7c3a81;p=openwrt%2Fstaging%2Fblogic.git ARC: fix actionpoints configuration detection Fix reversed logic while actionpoints configuration (full/min) detection. Fixies: 7dd380c338f1e ("ARC: boot log: print Action point details") Signed-off-by: Eugeniy Paltsev Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index feb90093e6b1..def19b0ef8c6 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -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);