From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751134AbdE2OYZ (ORCPT ); Mon, 29 May 2017 10:24:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbdE2OYW (ORCPT ); Mon, 29 May 2017 10:24:22 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 002EAC0467C5 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bristot@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 002EAC0467C5 From: Daniel Bristot de Oliveira To: linux-kernel@vger.kernel.org Cc: Xunlei Pang , Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Luca Abeni , Tommaso Cucinotta , Romulo Silva de Oliveira Subject: [PATCH V2 1/2] sched/deadline: Fixes a comment: dl_bw = dl_runtime / dl_period Date: Mon, 29 May 2017 16:24:02 +0200 Message-Id: <8d05f1ccfd02da1a11bda62494d98f5456c1469a.1495803804.git.bristot@redhat.com> In-Reply-To: References: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 29 May 2017 14:24:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sched_dl_entity's dl_bw variable stores the utilization (dl_runtime / dl_period) of a task, not its density (dl_runtime / dl_deadline), as the comment says. Signed-off-by: Daniel Bristot de Oliveira Cc: Xunlei Pang Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Steven Rostedt Cc: Luca Abeni Cc: Tommaso Cucinotta Cc: Romulo Silva de Oliveira Cc: linux-kernel@vger.kernel.org --- include/linux/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 2b69fc6..9778546 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -421,7 +421,7 @@ struct sched_dl_entity { u64 dl_runtime; /* Maximum runtime for each instance */ u64 dl_deadline; /* Relative deadline of each instance */ u64 dl_period; /* Separation of two instances (period) */ - u64 dl_bw; /* dl_runtime / dl_deadline */ + u64 dl_bw; /* dl_runtime / dl_period */ /* * Actual scheduling parameters. Initialized with the values above, -- 2.5.5