From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757800Ab3HAWdk (ORCPT ); Thu, 1 Aug 2013 18:33:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51888 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753272Ab3HAWdj (ORCPT ); Thu, 1 Aug 2013 18:33:39 -0400 Date: Thu, 1 Aug 2013 18:33:03 -0400 From: Rik van Riel To: Peter Zijlstra Cc: Mel Gorman , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML Subject: Re: [PATCH] mm, numa: Change page last {nid,pid} into {cpu,pid} Message-ID: <20130801183303.18880ad4@annuminas.surriel.com> In-Reply-To: <20130730112438.GQ3008@twins.programming.kicks-ass.net> References: <1373901620-2021-1-git-send-email-mgorman@suse.de> <20130730112438.GQ3008@twins.programming.kicks-ass.net> Organization: Red Hat, Inc. Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jul 2013 13:24:39 +0200 Peter Zijlstra wrote: > > Subject: mm, numa: Change page last {nid,pid} into {cpu,pid} > From: Peter Zijlstra > 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 Here are some compile fixes for !CONFIG_NUMA_BALANCING Signed-off-by: Rik van Riel --- 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; }