From: Jonathan Creekmore <jonathan.creekmore@gmail.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
Jonathan Creekmore <jonathan.creekmore@gmail.com>,
Dario Faggioli <dario.faggioli@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v5 5/5] sched: Use the auto-generated list of schedulers
Date: Thu, 14 Jan 2016 10:25:18 -0600 [thread overview]
Message-ID: <m2ziw82knl.fsf@Nebula.lan> (raw)
In-Reply-To: <5697D80D02000078000C6DE9@prv-mh.provo.novell.com>
Jan Beulich writes:
>>>> On 14.01.16 at 15:49, <jonathan.creekmore@gmail.com> wrote:
>> --- a/xen/common/schedule.c
>> +++ b/xen/common/schedule.c
>> @@ -64,20 +64,9 @@ static void poll_timer_fn(void *data);
>> DEFINE_PER_CPU(struct schedule_data, schedule_data);
>> DEFINE_PER_CPU(struct scheduler *, scheduler);
>>
>> -static const struct scheduler *schedulers[] = {
>> -#ifdef CONFIG_SCHED_CREDIT
>> - &sched_credit_def,
>> -#endif
>> -#ifdef CONFIG_SCHED_CREDIT2
>> - &sched_credit2_def,
>> -#endif
>> -#ifdef CONFIG_SCHED_ARINC653
>> - &sched_arinc653_def,
>> -#endif
>> -#ifdef CONFIG_SCHED_RTDS
>> - &sched_rtds_def,
>> -#endif
>> -};
>> +extern const struct scheduler *__start_schedulers_array[],
>> *__end_schedulers_array[];
>> +#define NUM_SCHEDULERS (__end_schedulers_array - __start_schedulers_array)
>> +static const struct scheduler **schedulers = __start_schedulers_array;
>
> #define or properly constified (to help the compiler recognize it
> won't ever change).
I will make it a define in the next version.
prev parent reply other threads:[~2016-01-14 16:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 14:49 [PATCH v5 0/5] Allow schedulers to be selectable through Kconfig Jonathan Creekmore
2016-01-14 14:49 ` [PATCH v5 1/5] build: Env var to enable expert config options Jonathan Creekmore
2016-01-14 16:09 ` Jan Beulich
2016-01-15 15:47 ` Ian Campbell
2016-01-15 16:56 ` Jan Beulich
2016-01-14 14:49 ` [PATCH v5 2/5] build: Hook the schedulers into Kconfig Jonathan Creekmore
2016-01-14 16:13 ` Jan Beulich
2016-01-14 16:23 ` Jonathan Creekmore
2016-01-14 16:34 ` Ian Campbell
2016-01-14 16:44 ` Jan Beulich
2016-01-14 16:58 ` Ian Campbell
2016-01-14 17:22 ` Jonathan Creekmore
2016-01-14 14:49 ` [PATCH v5 3/5] build: Alloc space for sched list in the link file Jonathan Creekmore
2016-01-14 14:49 ` [PATCH v5 4/5] sched: Register the schedulers into the list Jonathan Creekmore
2016-01-14 14:49 ` [PATCH v5 5/5] sched: Use the auto-generated list of schedulers Jonathan Creekmore
2016-01-14 16:17 ` Jan Beulich
2016-01-14 16:25 ` Jonathan Creekmore [this message]
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=m2ziw82knl.fsf@Nebula.lan \
--to=jonathan.creekmore@gmail.com \
--cc=JBeulich@suse.com \
--cc=dario.faggioli@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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.