[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170322123641.GN14919@linux-mips.org>
Date: Wed, 22 Mar 2017 13:36:41 +0100
From: Ralf Baechle <ralf@...ux-mips.org>
To: Amit Kama IL <Amit.Kama@...ixfy.com>
Cc: "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mips@...ux-mips.org" <linux-mips@...ux-mips.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"jason@...edaemon.net" <jason@...edaemon.net>,
"marc.zyngier@....com" <marc.zyngier@....com>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"corbet@....net" <corbet@....net>
Subject: Re: [PATCH] Add initial SX3000b platform code to MIPS arch
On Wed, Mar 22, 2017 at 05:38:09AM +0000, Amit Kama IL wrote:
> Add initial support for boards based on Satixfy's SX3000b (Catniss) SoC.
> The SoC includes a MIPS interAptiv dual core 4 VPE processor and boots
> using device-tree.
>
> Signed-off-by: Amit Kama <amit.kama@...ixfy.com>
>
> The irqchip file (irq-sx3000b.c) is pertinent to the platform.
> IRQCHIP maintainers - is it possible to merge this through MIPS tree?
First thig, run your patch through scripts/checkpatch.pl and fix the
resulting pile of errors and warnings.
sx3000_machine_halt() will consume plenty of power if implemented as a
empty loop:
+static void sx3000_machine_halt(void)
+{
+ while (true);
+}
Something like:
static void sx3000_machine_halt(void)
{
local_irq_disable();
while (1) {
if (cpu_wait)
cpu_wait();
}
}
will make the function much "greener".
Ralf
Powered by blists - more mailing lists