lkml.org 
[lkml]   [2013]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] mm, numa: Change page last {nid,pid} into {cpu,pid}
On Tue, 30 Jul 2013 13:24:39 +0200
Peter Zijlstra <peterz@infradead.org> wrote:

>
> Subject: mm, numa: Change page last {nid,pid} into {cpu,pid}
> From: Peter Zijlstra <peterz@infradead.org>
> Date: Thu Jul 25 18:44:50 CEST 2013
>
> Change the per page last fault tracking to use cpu,pid instead of
> nid,pid. This will allow us to try and lookup the alternate task more
> easily.
>
> Signed-off-by: Peter Zijlstra <peterz@infradead.org>

Here are some compile fixes for !CONFIG_NUMA_BALANCING

Signed-off-by: Rik van Riel <riel@redhat.com>

---
include/linux/mm.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index d2f91a2..4f34a37 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -746,7 +746,12 @@ static inline int cpupid_to_pid(int cpupid)
return -1;
}

-static inline int nid_pid_to_cpupid(int nid, int pid)
+static inline int cpupid_to_cpu(int cpupid)
+{
+ return -1;
+}
+
+static inline int cpu_pid_to_cpupid(int nid, int pid)
{
return -1;
}

\
 
 \ /
  Last update: 2013-08-02 00:41    [W:0.381 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site