lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130308133059.GA27992@gmail.com>
Date:	Fri, 8 Mar 2013 14:30:59 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	Michel Lespinasse <walken@...gle.com>
Cc:	Paul Turner <pjt@...gle.com>, Ingo Molnar <mingo@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sched: make sched_group_{get,set}_rt_{runtime,period}
 functions static


* Michel Lespinasse <walken@...gle.com> wrote:

> Just a tiny cleanup I did while I was looking through scheduler code
> doing a tasklist_lock change. Please consider applying if you find it
> appropriate.
> 
> ------------------------------8<-----------------------------------------
> sched: make sched_group_{get,set}_rt_{runtime,period} functions static
> 
> These functions, as well as sched_rt_can_attach(), used to be public so
> that kernel/user.c could use them; however this use has now disappeared
> so that these functions can be made static again.
> 
> Signed-off-by: Michel Lespinasse <walken@...gle.com>
> 
> ---
>  include/linux/sched.h |  9 ---------
>  kernel/sched/core.c   | 11 ++++++-----
>  2 files changed, 6 insertions(+), 14 deletions(-)
> 
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index d35d2b6ddbfb..ac8dbca5ea15 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -2694,15 +2694,6 @@ extern void sched_move_task(struct task_struct *tsk);
>  extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
>  extern unsigned long sched_group_shares(struct task_group *tg);
>  #endif
> -#ifdef CONFIG_RT_GROUP_SCHED
> -extern int sched_group_set_rt_runtime(struct task_group *tg,
> -				      long rt_runtime_us);
> -extern long sched_group_rt_runtime(struct task_group *tg);
> -extern int sched_group_set_rt_period(struct task_group *tg,
> -				      long rt_period_us);
> -extern long sched_group_rt_period(struct task_group *tg);
> -extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk);
> -#endif
>  #endif /* CONFIG_CGROUP_SCHED */

Makes sense - but Li Zefan has beaten you to it by a few days:

  25cc7da7e633 sched: Move group scheduling functions out of include/linux/sched.h

Which can be found in the latest scheduler development tree, queued up for v3.10:

  git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master    # or sched/core

Thanks,

	Ingo

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ