[PATCH v6 10/11] cpuidle/powernv: Add support for POWER ISA v3 idle states

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jun 14 21:29:48 AEST 2016


On Tue, 2016-06-14 at 16:17 +0530, Shreyas B Prabhu wrote:

> 
> I ignored adding this check because this is part of initcall and we are
> unlikely to run out of memory at this state. But I'll add the check in
> next version.

Why do you malloc the u64 array and not the string pointer array ?
Shouldn't you either have both on stack or both allocated ?

Cheers,
Ben.



More information about the Linuxppc-dev mailing list