Message ID | e2e50578223d05c5e90a9feb964fe1ec5d09a052.1495603536.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp115483qge; Tue, 23 May 2017 22:31:08 -0700 (PDT) X-Received: by 10.99.126.67 with SMTP id o3mr36000477pgn.36.1495603868328; Tue, 23 May 2017 22:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495603868; cv=none; d=google.com; s=arc-20160816; b=IfDUigU05b2dtxZobfUmMKrofTpmSLEJX/bqM9ViWUtD75LrJCL4jCVrmlpqD8jJNd tOOxGacJGFH3dji5jhtJlw7jmNAe7xvCn4Qc87/WX9tyHQbWGddoT4wVxb+yIda/zza8 x51+6xd132BPXLrbj36tuE66IwPk0/aMSbs7X97X9hROczKTI4gmhujXHlUwkDlqnxxi UWKzA+v6B41yr767UJgDoLFPXs+KF3a4ljvkSDVBjnrhitM6vN6MoPBmacRI2yamLzwc zPjzCTl4w2d6N4gyvi3hPegFPcf8PlVVQcCs9dRgppJ8hqQ/8vf5yGR4n4tmh3p2mxf7 w4CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9rcluLe462+XjCXOeaalLOAV0rhvsA8xyXyH4YVeAm0=; b=OGOU90LG0FvRXqynZwhca7+24x7qDfHjUaasERlE+51JNwPyOk6ihzzubdg0yP+8Dc 9nUeg4WatUPQiAif/J/62GTWouBzILSHkraySWXU6aYqtBjreKtXqT//Vkzw8OEKUsm1 53OIMRN+uPrmSN6BdvACy/PyAS7Vhp4tHEHCxJr5Ni+CGvMn5PLZrAcnMhQ9Ge62ydAf sLt1GwLj8mCL/S9MnCw0cpF05h0rFE6d9vb0y9Z045wriyiVsh5PbGU79At9vS6pOHev pLCy+zOOU2Qpsq8dTAL4hOfKYQhs/R/lwOJPSD9SLsFY/tOhPbs5MlKvs5+HLh80eiW3 f5Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b68si22954419pfk.341.2017.05.23.22.31.07; Tue, 23 May 2017 22:31:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969225AbdEXFbF (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 24 May 2017 01:31:05 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:33572 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969206AbdEXFar (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2017 01:30:47 -0400 Received: by mail-pf0-f171.google.com with SMTP id e193so133686593pfh.0 for <linux-kernel@vger.kernel.org>; Tue, 23 May 2017 22:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=9rcluLe462+XjCXOeaalLOAV0rhvsA8xyXyH4YVeAm0=; b=TZsjg5YpnUKATfWyK2PBUKLyr2SKLlT0+IegRhJgTaPqCyL75MkjwUdptt7oCh0l4B 3hcw0inhDq/pbXIDwzswlzvXiOHi9Q738YUuOwbH3BkodUbECpNXVCMx6bwID5wAQuD2 +jsH9zbhb4UagJPAioGZc8oAwnicoQFvbekno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=9rcluLe462+XjCXOeaalLOAV0rhvsA8xyXyH4YVeAm0=; b=jn7+/L1DFIncfHB9zVbdgjVp4XoKWxtG67qPINgcULJkj4IntaivJsjx4K30HBcXJV RgNNTC0fcbcJExZyWgNY9CbFoE2/Cn27VKq6nQQpnBAP7nODCUak7BZWRia9llUfYzeq 4NG070x5jGablGbWa93L4FgOaR2TtAPHnPldEeFbi9jloVDZRRDcT3KrFnNyarRZIHRA OO/qy/eiKeq8DFI+4vg5ciGmi9pjS3R17/+l8ZHSc9wNeELG3Vj+AT2GDDAlOJkxrIWh Ewdn1L3Kfu7rRCHhI6H3o6SGm0h/BaqNvJqaecdmbVM4zgGGlJY4bRJVNNebV8JGg5JC sHqA== X-Gm-Message-State: AODbwcDa3gjvjICVtBksjjfzOOKWz3eQfmUPG1SQpD1Ucp2xIyTuZ9kX KgKPX2nXt5c+2nqv X-Received: by 10.98.83.132 with SMTP id h126mr3351276pfb.214.1495603827241; Tue, 23 May 2017 22:30:27 -0700 (PDT) Received: from localhost ([122.167.143.58]) by smtp.gmail.com with ESMTPSA id 80sm4572860pfl.89.2017.05.23.22.30.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 22:30:26 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 2/6] sched: Reuse put_prev_task() Date: Wed, 24 May 2017 10:59:53 +0530 Message-Id: <e2e50578223d05c5e90a9feb964fe1ec5d09a052.1495603536.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.70.g6367777092d9 In-Reply-To: <cover.1495603536.git.viresh.kumar@linaro.org> References: <cover.1495603536.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1495603536.git.viresh.kumar@linaro.org> References: <cover.1495603536.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
sched: Minor fixes and cleanups
|
expand
|
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a8366cfebd31..8ddebb068585 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5683,7 +5683,7 @@ static void migrate_tasks(struct rq *dead_rq, struct rq_flags *rf) */ next = pick_next_task(rq, &fake_task, rf); BUG_ON(!next); - next->sched_class->put_prev_task(rq, next); + put_prev_task(rq, next); /* * Rules for changing task_struct::cpus_allowed are holding
Reuse put_prev_task() instead of copying its implementation. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.0.70.g6367777092d9