Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1685175

Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE
Date Tue, 11 Jul 2017 18:20:01 +0200
Message-ID <u263f-4Bc-1@gated-at.bofh.it> (permalink)
References <tZOtQ-4hV-5@gated-at.bofh.it> <tZOtQ-4hV-15@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7p008uH6aPY2lhRRV4JOWlBrRJxS7WqMOQR4hnVDbWY=; b=a9vhRBHV3u7AKLIssEcNVjwIa xSeTXJRnNdbTzjytiVKPSUSz0iGLZKsk6zAJMkXx+MLm9mKXME6Q2k+Jegc0SzDcRzYjF3KVAX38B Z5BPGPlaqDgJ2VrNhvu9KHmUSmCM0EkxHrswndGg1q1483t4uhxsrrSmhl34MAlsZAeqjaREWYZ/6 j9r3BUgqZbh2ASvqKYaaAeDK+MH5dPUfDmfriqlmPW8cCbMozD0NX83TJTcoex3cxVjQ4GcipY8im j8LyVdeues5HReKTZDYWK1ocvt4/jiTFnjq0g2CujzVdTtvRMblRuJKglwD0Jm+TKcuDOqp2b4H1c M+iXzCNlQ==;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent NeoMutt/20170609 (1.8.3)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 15
Organization linux.* mail to news gateway
X-Original-Cc mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, tglx@linutronix.de, vincent.guittot@linaro.org, rostedt@goodmis.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, tkjos@android.com, joelaf@google.com, andresoportus@google.com, morten.rasmussen@arm.com, dietmar.eggemann@arm.com, patrick.bellasi@arm.com, Ingo Molnar <mingo@kernel.org>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>
X-Original-Date Tue, 11 Jul 2017 18:18:16 +0200
X-Original-Message-ID <20170711161816.pqlrkziya6gu5hms@hirez.programming.kicks-ass.net>
X-Original-References <20170705085905.6558-1-juri.lelli@arm.com> <20170705085905.6558-4-juri.lelli@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1685175

Show key headers only | View raw


On Wed, Jul 05, 2017 at 09:59:00AM +0100, Juri Lelli wrote:
> @@ -4065,6 +4067,9 @@ static int __sched_setscheduler(struct task_struct *p,
>  	}
>  
>  	if (user) {
> +		if (attr->sched_flags & SCHED_FLAG_SPECIAL)
> +			return -EPERM;

Should be -EINVAL I think, as if the bit didn't exist at all (it
doesn't, from a userspace perspective).

> +
>  		retval = security_task_setscheduler(p);
>  		if (retval)
>  			return retval;

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
  Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Joel Fernandes <joelaf@google.com> - 2017-07-07 06:00 +0200
    Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Thomas Gleixner <tglx@linutronix.de> - 2017-07-07 12:50 +0200
      Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Juri Lelli <juri.lelli@arm.com> - 2017-07-07 13:00 +0200
        Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-07-07 15:20 +0200
          Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Steven Rostedt <rostedt@goodmis.org> - 2017-07-08 00:00 +0200
            Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Joel Fernandes <joelaf@google.com> - 2017-07-08 00:10 +0200
              Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Steven Rostedt <rostedt@goodmis.org> - 2017-07-08 00:20 +0200
                Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Joel Fernandes <joelaf@google.com> - 2017-07-08 01:00 +0200
    Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Juri Lelli <juri.lelli@arm.com> - 2017-07-07 12:50 +0200
    Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Peter Zijlstra <peterz@infradead.org> - 2017-07-11 14:40 +0200
  Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-07 09:30 +0200
  Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Peter Zijlstra <peterz@infradead.org> - 2017-07-11 18:20 +0200
    Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread  be SCHED_DEADLINE Juri Lelli <juri.lelli@arm.com> - 2017-07-11 19:10 +0200

csiph-web