Re: [PATCH RESEND v4 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio

2015-03-10 Thread Dan Streetman
On Mon, Mar 9, 2015 at 3:32 AM, Xunlei Pang wrote: > From: Xunlei Pang > > If there're multiple nodes with the same prio as @node, currently > plist_add() will add @node behind all of them. Now we need to add > @node before all of these nodes for SMP RT scheduler. > > This patch adds a common

Re: [PATCH RESEND v4 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio

2015-03-10 Thread Dan Streetman
On Mon, Mar 9, 2015 at 3:32 AM, Xunlei Pang xlp...@126.com wrote: From: Xunlei Pang pang.xun...@linaro.org If there're multiple nodes with the same prio as @node, currently plist_add() will add @node behind all of them. Now we need to add @node before all of these nodes for SMP RT scheduler.

[PATCH RESEND v4 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio

2015-03-09 Thread Xunlei Pang
From: Xunlei Pang If there're multiple nodes with the same prio as @node, currently plist_add() will add @node behind all of them. Now we need to add @node before all of these nodes for SMP RT scheduler. This patch adds a common __plist_add() for adding @node before or after existing nodes with

[PATCH RESEND v4 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio

2015-03-09 Thread Xunlei Pang
From: Xunlei Pang pang.xun...@linaro.org If there're multiple nodes with the same prio as @node, currently plist_add() will add @node behind all of them. Now we need to add @node before all of these nodes for SMP RT scheduler. This patch adds a common __plist_add() for adding @node before or