Received: by 10.223.185.116 with SMTP id b49csp1044545wrg; Wed, 21 Feb 2018 11:06:40 -0800 (PST) X-Google-Smtp-Source: AH8x226hz/pvmXeLlq+c29wzL5nFhtF27ah7ehnEML5PVjQajFu6naXjM4VIs47AipvrGWO2Faoz X-Received: by 2002:a17:902:850a:: with SMTP id bj10-v6mr4128806plb.5.1519240000493; Wed, 21 Feb 2018 11:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240000; cv=none; d=google.com; s=arc-20160816; b=z3MjFTOlMisyzRolDfEjnUeTsDyiCVGKnmNyRfbU2BsHlw/sTlkOMHrCn2S1El9VMD 3jh0L3UPL4uQa74+RcnQrOjUgvWzd9DHMDS3GAq58H0CQBRKl1ijbgVCE5gk0okzll4P UDxxCkHT7CVs52Lt/eeO4qbrkaA6yW9zoaiCiZfjLfKE9vH3yPP5T/s3nUuPdK7VwAoG Gv2+XI24RTvdTB6VK3CXKTP93lpYM75S8l947XYJzslRFhVAn1tsTLgsbMuoyJ+anB71 ErMQgmEIizcQtCk3HIsDmNpttIbaGUtY2wDDWItzF5o0j0DaFeTGcxopOXf4rquX0/Kp Mo5g== 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:message-id:date :subject:cc:to:from:arc-authentication-results; bh=EV8w7XFNpBeVBnYFCQv1ekXofAKtbTDiBJPa8KolkZc=; b=pQjxkZJnC5+D3eZPq3/q7aB6yAI/lH5nB3LuZ5F4YvKhD1ZY1BTY0jc3vNb6lTUyXo uJxwan6q2HTTbPpTqyuKZBT6NTwmpm5vLfRayW4GSKnq7e5Y1pu85GgIuy6nVF1dzb9v BrcRw8BYUYkWJKDoTOZKi6wGm7R4ZvZEj1zEXtjDcDkA3J69irN20B1aQpvacMviq6h8 S8ST50pA6HIgem0nFpyu4yIY/qK0VKhaN4pLs+JOm5KaL0KaaomX+aT8I7JBoqsGgUN+ dg9tWSvrZjG32eYoKT2GH7a4LNkuTEj2PXHa6JtvCj+iMJsbX1nRBpAUMnaJF4XOpYcW azPA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si2112786pgn.306.2018.02.21.11.06.26; Wed, 21 Feb 2018 11:06:40 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbeBUQ45 (ORCPT + 99 others); Wed, 21 Feb 2018 11:56:57 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:53112 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbeBUQ44 (ORCPT ); Wed, 21 Feb 2018 11:56:56 -0500 Received: from gentoo.red.cuarto (unknown [181.67.35.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chrisadr) by smtp.gentoo.org (Postfix) with ESMTPSA id 85E55335C31; Wed, 21 Feb 2018 16:56:54 +0000 (UTC) From: Christopher Diaz Riveros To: juri.lelli@gmail.com, peterz@infradead.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [RFC] sched/headers: comments clean up Date: Wed, 21 Feb 2018 11:56:46 -0500 Message-Id: <20180221165646.15432-1-chrisadr@gentoo.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <1518787521.2464.20.camel@gentoo.org> References: <1518787521.2464.20.camel@gentoo.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove inline comments to merge them into comment blocks. Enhance readability from source code by giving descriptions from the structures and data in comment blocks instead from inline comments. Signed-off-by: Christopher Diaz Riveros --- include/linux/sched.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index b161ef8a902e..693a6e51ed0c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -221,12 +221,21 @@ struct task_cputime { #define prof_exp stime #define sched_exp sum_exec_runtime +/* + * vtime_state states: + * + * @VTIME_INACTIVE tells if task is sleeping or running in a CPU with + * VTIME inactive. + * + * @VTIME_USER tells if task is running in userspace in a CPU with + * VTIME active. + * + * @VTIME_SYS tells if task is running in kernelspace in a CPU with + * VTIME active. + */ enum vtime_state { - /* Task is sleeping or running in a CPU with VTIME inactive: */ VTIME_INACTIVE = 0, - /* Task runs in userspace in a CPU with VTIME active: */ VTIME_USER, - /* Task runs in kernelspace in a CPU with VTIME active: */ VTIME_SYS, }; -- 2.16.2