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

2015-04-09 Thread Steven Rostedt
On Thu, 9 Apr 2015 11:27:16 +0800 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 comm

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

2015-04-08 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