[PATCH] zynq: clkc: Add kmalloc allocation flag

Michal Simek michal.simek at amd.com
Mon Feb 27 06:38:00 PST 2023


Hi,

On 2/23/23 19:33, Li zeming wrote:
> 
> hello senior:
>    I observed that some other variable assignments in this function are basically judged by the if statement, while clk_name does not make an if branch statement, and I think clk_name is also relatively important, increasing __GFP_NOFAIL flag ensures that the assignment can succeed under any circumstances.
> 

I think that solution with array on stack would be better choice.
It will be faster and you can completely skip the whole allocation code for it.

Thanks,
Michal




More information about the linux-arm-kernel mailing list