[PATCH 6.1 673/798] perf sched: Avoid large stack allocations