Messages in this thread | | | Date | Mon, 27 Feb 2023 15:38:00 +0100 | Subject | Re: [PATCH] zynq: clkc: Add kmalloc allocation flag | From | Michal Simek <> |
| |
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
| |