[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/5] sched/arinc653: Reorganize function definition order


  • To: Dario Faggioli <dfaggioli@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • From: Jeff Kubascik <jeff.kubascik@xxxxxxxxxxxxxxx>
  • Date: Fri, 18 Sep 2020 14:21:21 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=dornerworks.com; dmarc=pass action=none header.from=dornerworks.com; dkim=pass header.d=dornerworks.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HXFnl1Ecd+7wxa32Swz94nJ7THdy3AmS0A9VZ7tgj0g=; b=Oz1LoV2GkmNpEZBlP+M4mG+Xw4B8q6a2CplSaqTnTnYgR7ibgvgsie/AuEbCIGmQCdN7w6cpjwPxXFQhvSqkcHrrdXkxkO6wCVZVVuJP/r08vtWSLdh+Yaol1CvRlXUti2d425cX0GgQng2OM/62/rnC79HRs9TUMH7Genij7UwXyA9RYPRVA3RH3k5eIznCUec3e256ZKSUzGb77N4J4t1RpE9R1xxjddhczvBmMKXqGbaOMqIlnT973iDRX//M/Yo8v1rkO1XqMv3I9mdJedjHXCOKPgfSi8YslcO/6PPSLSp38oQjDG6caiVNZ848UMrtG46kdDMFUiVxupmKDQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=pzdMVA9RZFXz953LAia/FRVrqBA5LI4UsrTQpieN5FPsYz+0x5jpbXVV2ZQV/r2H61smo9mxj7TIIHd+Hz1NMct1Uu3R/O9KTkka1iZhfjfIgPnKh7PUQqp243hwcsMIlhtcYFR1Vmolh/Ka+Ip4vG7ZXP44DDliQmv3HToF2D/cw7aHOg3dKBYHObKOvZLrnO7f+dld+IGtxf3sBXcsVtwbOHMECNonfh1uPaqDWYsV0BFYVTMUx7HSk919n6FE4F6Faxup9ZifECb1ZwKoYNB9VCY4FQFJQVdvMBkS2Y1iY120AbzI+eJFF1E2E6+ftCQs/HRbwMEXbyGM5kpVnA==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none; citrix.com; dmarc=none action=none header.from=dornerworks.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxx, Josh Whitehead <josh.whitehead@xxxxxxxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Fri, 18 Sep 2020 18:21:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 9/17/2020 10:16 AM, Dario Faggioli wrote:
>On Thu, 2020-09-17 at 10:12 +0200, Jan Beulich wrote:
>> On 16.09.2020 20:18, Jeff Kubascik wrote:
>>> @@ -517,27 +516,35 @@ static const struct scheduler
>>> sched_arinc653_def = {
>>>      .sched_id       = XEN_SCHEDULER_ARINC653,
>>>      .sched_data     = NULL,
>>>
>>> +    .global_init    = NULL,
>>>      .init           = a653sched_init,
>>>      .deinit         = a653sched_deinit,
>>>
>>> -    .free_udata     = a653sched_free_udata,
>>> -    .alloc_udata    = a653sched_alloc_udata,
>>> +    .alloc_pdata    = NULL,
>>> +    .switch_sched   = a653sched_switch_sched,
>>> +    .deinit_pdata   = NULL,
>>> +    .free_pdata     = NULL,
>>>
>>> +    .alloc_domdata  = NULL,
>>> +    .free_domdata   = NULL,
>>> +
>>> +    .alloc_udata    = a653sched_alloc_udata,
>>>      .insert_unit    = NULL,
>>>      .remove_unit    = NULL,
>>> +    .free_udata     = a653sched_free_udata,
>>>
>>>      .sleep          = a653sched_unit_sleep,
>>>      .wake           = a653sched_unit_wake,
>>>      .yield          = NULL,
>>>      .context_saved  = NULL,
>>>
>>> -    .do_schedule    = a653sched_do_schedule,
>>> -
>>>      .pick_resource  = a653sched_pick_resource,
>>> +    .migrate        = NULL,
>>>
>>> -    .switch_sched   = a653sched_switch_sched,
>>> +    .do_schedule    = a653sched_do_schedule,
>>>
>>>      .adjust         = NULL,
>>> +    .adjust_affinity= NULL,
>>
>> Adding all these not really needed NULL initializers looks to rather
>> move
>> this scheduler away from all the others.
>>
>Agreed, no need for more "= NULL". On the contrary, the ones that are
>there should go away.

Agreed x2, I'll remove the "= NULL" lines.

>About this:
>
>>  (Oddly enough all of them
>> explicitly set .sched_data to NULL - for whatever reason.)
>>
>Yes, we decided to keep it like that, back then. I think now it would
>be ok for it to go away too.
>
>So, Jeff, feel free to zap it with this patch or series. Or I can send
>a patch to zap all of them, as you wish.

I'll remove the ".sched_data = NULL" line above, but my scope is limited to the
ARINC653 scheduler, so I won't be able to work on this.

-Jeff



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.