lkml.org 
[lkml]   [2022]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/9] trinity: Add schduler module
On Mon, Jul 25, 2022 at 03:53:03PM +0900, Jiho Chu wrote:
> This patch includes NPU scheduler interface.
>
> Tasks can be pushed to the NPU in order by the scheduler. The default
> schduling algorithm is provided using Priority policy.
> The scheduler waits request from the user. When the requests are
> invoked, it submits each request to the NPU by the priority, and waits
> until complete interrupt arrives. The priority is calculated with
> remained time to requested timeout.
>
> Thus the scheduler algorithm may be added more in the later, it
> provides an interface which can support various schedulers.

Please do not add interfaces that you do not use at all. Just make it
simple for the first version and then, if you really need to add new
types of "schedulers" add them later on.

As it is, this is a whole layer of abstraction that is not needed and
can be removed.

thanks,

greg k-h

\
 
 \ /
  Last update: 2022-07-27 15:10    [W:0.218 / U:1.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site