All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dhaval Giani <dhaval@linux.vnet.ibm.com>
To: Ingo Oeser <ioe-lkml@rameria.de>
Cc: vatsa@linux.vnet.ibm.com, Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Mike Galbraith <efault@gmx.de>,
	Dmitry Adamushko <dmitry.adamushko@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	randy.dunlap@oracle.com
Subject: Re: [PATCH 1/3] Fix coding style
Date: Wed, 26 Sep 2007 07:33:07 +0530	[thread overview]
Message-ID: <20070926020307.GA14473@linux.vnet.ibm.com> (raw)
In-Reply-To: <200709252116.22541.ioe-lkml@rameria.de>

On Tue, Sep 25, 2007 at 09:16:20PM +0200, Ingo Oeser wrote:
> On Tuesday 25 September 2007, Srivatsa Vaddagiri wrote:
> > Index: current/kernel/sched_debug.c
> > ===================================================================
> > --- current.orig/kernel/sched_debug.c
> > +++ current/kernel/sched_debug.c
> > @@ -239,11 +239,7 @@ static int
> >  root_user_share_read_proc(char *page, char **start, off_t off, int count,
> >  				 int *eof, void *data)
> >  {
> > -	int len;
> > -
> > -	len = sprintf(page, "%d\n", init_task_grp_load);
> > -
> > -	return len;
> > +	return sprintf(page, "%d\n", init_task_grp_load);
> >  }
> >  
> >  static int
> > @@ -297,7 +293,7 @@ static int __init init_sched_debug_procf
> >  	pe->proc_fops = &sched_debug_fops;
> >  
> >  #ifdef CONFIG_FAIR_USER_SCHED
> > -	pe = create_proc_entry("root_user_share", 0644, NULL);
> > +	pe = create_proc_entry("root_user_cpu_share", 0644, NULL);
> >  	if (!pe)
> >  		return -ENOMEM;
> 
> What about moving this debug stuff under debugfs?
> Please consider using the functions in <linux/debugfs.h> .
> They compile into nothing, if DEBUGFS is not compiled in
> and have already useful functions for reading/writing integers
> and booleans.
> 
Hi Ingo,

This is not debug stuff. It is a tunable to give the root user more
weight with respect to the other users.

-- 
regards,
Dhaval

  parent reply	other threads:[~2007-09-26  2:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25 14:44 [git] CFS-devel, latest code Ingo Molnar
2007-09-25 16:04 ` Srivatsa Vaddagiri
2007-09-25 16:08   ` Srivatsa Vaddagiri
2007-09-25 16:25 ` [PATCH 0/3] More group scheduler related fixes Srivatsa Vaddagiri
2007-09-25 16:28   ` [PATCH 1/3] Fix coding style Srivatsa Vaddagiri
2007-09-25 19:16     ` Ingo Oeser
2007-09-25 20:47       ` Kyle Moffett
2007-09-26  2:03       ` Dhaval Giani [this message]
2007-09-25 16:33   ` [PATCH 2/3] Fix size bloat for !CONFIG_FAIR_GROUP_SCHED Srivatsa Vaddagiri
2007-09-25 16:37   ` [PATCH 3/3] Fix other possible sources of latency issues Srivatsa Vaddagiri
2007-09-25 18:32   ` [PATCH 0/3] More group scheduler related fixes Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070926020307.GA14473@linux.vnet.ibm.com \
    --to=dhaval@linux.vnet.ibm.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.adamushko@gmail.com \
    --cc=efault@gmx.de \
    --cc=ioe-lkml@rameria.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=randy.dunlap@oracle.com \
    --cc=vatsa@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.