Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754189Ab0GALM4 (ORCPT ); Thu, 1 Jul 2010 07:12:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11131 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848Ab0GALMy (ORCPT ); Thu, 1 Jul 2010 07:12:54 -0400 Date: Thu, 1 Jul 2010 14:07:08 +0300 From: "Michael S. Tsirkin" To: Ingo Molnar , Peter Zijlstra Cc: Sridhar Samudrala , Tejun Heo , Oleg Nesterov , netdev , lkml , "kvm@vger.kernel.org" , Andrew Morton , Dmitri Vorobiev , Jiri Kosina , Thomas Gleixner , Andi Kleen Subject: [PATCH repost] sched: export sched_set/getaffinity to modules Message-ID: <20100701110708.GA27368@redhat.com> References: <4BFEA434.6080405@kernel.org> <20100527173207.GA21880@redhat.com> <4BFEE216.2070807@kernel.org> <20100528150830.GB21880@redhat.com> <4BFFE742.2060205@kernel.org> <20100530112925.GB27611@redhat.com> <4C02C99D.9070204@kernel.org> <20100624081135.GA937@redhat.com> <1277419551.27868.27.camel@w-sridhar.beaverton.ibm.com> <20100625101022.GA16321@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100625101022.GA16321@redhat.com> User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1325 Lines: 43 Author: Sridhar Samudrala sched: export sched_set/getaffinity to modules vhost-net driver wants to copy the affinity from the owner thread to thread it creates. Export sched_set/get affinity to modules to make this possible when vhost is built as a module. Signed-off-by: Sridhar Samudrala Signed-off-by: Michael S. Tsirkin --- I'm not sure the previous time made it clear what exactly is the proposed change, so reposting. Info, Peter, could you ack merging the following through the net-next tree please? diff --git a/kernel/sched.c b/kernel/sched.c index d484081..3759391 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4744,6 +4744,7 @@ out_put_task: put_online_cpus(); return retval; } +EXPORT_SYMBOL_GPL(sched_setaffinity); static int get_user_cpu_mask(unsigned long __user *user_mask_ptr, unsigned len, struct cpumask *new_mask) @@ -4807,6 +4808,7 @@ out_unlock: return retval; } +EXPORT_SYMBOL_GPL(sched_getaffinity); /** * sys_sched_getaffinity - get the cpu affinity of a process -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/