diff options
author | Maíra Canal <[email protected]> | 2024-11-01 13:54:07 -0300 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-11 13:09:43 -0800 |
commit | 1c8d48497525d77acfb7bdaaa246a887e754f379 (patch) | |
tree | aa0f87929272af3b4e756bbe477730b3b2c21bd0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 949042811117d2f437ef6b529a69d45e2ee2d429 (diff) |
mm: move ``get_order_from_str()`` to internal.h
In order to implement a kernel parameter similar to ``thp_anon=`` for
shmem, we'll need the function ``get_order_from_str()``.
Instead of duplicating the function, move the function to a shared
header, in which both mm/shmem.c and mm/huge_memory.c will be able to
use it.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Maíra Canal <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Barry Song <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Lance Yang <[email protected]>
Cc: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions