Re: [tip: sched/core] x86, sched: Add support for frequency invariance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip: sched/core] x86, sched: Add support for frequency invariance
- From: Valentin Schneider <valentin.schneider@xxxxxxx>
- Date: Mon, 30 Mar 2020 17:03:04 +0100
- Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx, tip-bot2 for Giovanni Gherdovich <tip-bot2@xxxxxxxxxxxxx>, Giovanni Gherdovich <ggherdovich@xxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Doug Smythies <dsmythies@xxxxxxxxx>, "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>, x86 <x86@xxxxxxxxxx>
- In-reply-to: <20200330125219.GM20696@hirez.programming.kicks-ass.net>
- References: <20200122151617.531-2-ggherdovich@suse.cz> <158029757853.396.10568128383380430250.tip-bot2@tip-bot2> <158556634294.3228.4889951961483021094@build.alporthouse.com> <20200330125219.GM20696@hirez.programming.kicks-ass.net>
- User-agent: mu4e 0.9.17; emacs 26.3
On Mon, Mar 30 2020, Peter Zijlstra wrote:
> +static void init_freq_invariance(bool secondary)
> {
> bool ret = false;
>
> - if (smp_processor_id() != 0 || !boot_cpu_has(X86_FEATURE_APERFMPERF))
> + if (!boot_cpu_has(X86_FEATURE_APERFMPERF))
> return;
>
> + if (secondary) {
> + if (static_branch_likely(&arch_scale_freq_key)) {
> + init_counter_refs(NULL);
> + }
> + return;
> + }
> +
Oh doh, that's an "enable once and for all" thing. That makes much more
sense; sorry for the noise.
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]