Re: [PATCH] zynq: clkc: Add kmalloc allocation flag

From: Michal Simek
Date: Mon Feb 27 2023 - 09:38:21 EST


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