ARC: fix actionpoints configuration detection [Linux 5.0]

ARC: fix actionpoints configuration detection [Linux 5.0]

This Linux kernel change "ARC: fix actionpoints configuration detection" is included in the Linux 5.0 release. This change is authored by Eugeniy Paltsev <Eugeniy.Paltsev [at] synopsys.com> on Mon Feb 4 21:41:51 2019 +0300. The commit for this change in Linux stable tree is cdf9296 (patch).

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 <[email protected]>
Signed-off-by: Vineet Gupta <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arc/kernel/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index feb9009..def19b0 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);

Leave a Reply

Your email address will not be published. Required fields are marked *