summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorQais Yousef <qyousef@layalina.io>2024-06-10 20:20:18 +0100
committerPeter Zijlstra <peterz@infradead.org>2024-08-07 18:32:38 +0200
commitae04f69de0bef93c7086cf2983dbc8e8fd624ebe (patch)
tree22e900c1069394189c8e78b70a32ef68c3293e5a /mm/page_alloc.c
parentb166af3db70fdcecf125662a2360471bb20be203 (diff)
downloadlinux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.tar.gz
linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.tar.bz2
linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.zip
sched/rt: Rename realtime_{prio, task}() to rt_or_dl_{prio, task}()
Some find the name realtime overloaded. Use rt_or_dl() as an alternative, hopefully better, name. Suggested-by: Daniel Bristot de Oliveira <bristot@redhat.com> Signed-off-by: Qais Yousef <qyousef@layalina.io> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20240610192018.1567075-4-qyousef@layalina.io
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 54274e468d51..36f8abde3751 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4002,7 +4002,7 @@ gfp_to_alloc_flags(gfp_t gfp_mask, unsigned int order)
*/
if (alloc_flags & ALLOC_MIN_RESERVE)
alloc_flags &= ~ALLOC_CPUSET;
- } else if (unlikely(realtime_task(current)) && in_task())
+ } else if (unlikely(rt_or_dl_task(current)) && in_task())
alloc_flags |= ALLOC_MIN_RESERVE;
alloc_flags = gfp_to_alloc_flags_cma(gfp_mask, alloc_flags);