aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorAndrea Righi <[email protected]>2023-11-02 09:19:14 +0100
committerLinus Torvalds <[email protected]>2023-11-02 07:35:39 -1000
commit17fc8084aa8f9d5235f252fc3978db657dd77e92 (patch)
tree07b14e1c46a44ab2778b6e174b40898bb995440b /tools/perf/scripts/python/sched-migration.py
parentca219be012786654d5c802ee892433aaa0016d10 (diff)
module/decompress: use kvmalloc() consistently
We consistently switched from kmalloc() to vmalloc() in module decompression to prevent potential memory allocation failures with large modules, however vmalloc() is not as memory-efficient and fast as kmalloc(). Since we don't know in general the size of the workspace required by the decompression algorithm, it is more reasonable to use kvmalloc() consistently, also considering that we don't have special memory requirements here. Suggested-by: Linus Torvalds <[email protected]> Tested-by: Andrea Righi <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions