aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCarlos Llamas <[email protected]>2023-12-01 17:21:39 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-05 09:23:39 +0900
commit0d35bf3bf2da8d43fd12fea7699dc936999bf96e (patch)
treeda9d7105fc1d7d6819700ae709b178a7cbc4fe56 /tools/perf/scripts/python
parentdf9aabead791d7a3d59938abe288720f5c1367f7 (diff)
binder: split up binder_update_page_range()
The binder_update_page_range() function performs both allocation and freeing of binder pages. However, these two operations are unrelated and have no common logic. In fact, when a free operation is requested, the allocation logic is skipped entirely. This behavior makes the error path unnecessarily complex. To improve readability of the code, this patch splits the allocation and freeing operations into separate functions. No functional changes are introduced by this patch. Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Carlos Llamas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions