mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
list: introduce list_next_entry() and list_prev_entry()
Add two trivial helpers list_next_entry() and list_prev_entry(), they can have a lot of users including list.h itself. In fact the 1st one is already defined in events/core.c and bnx2x_sp.c, so the patch simply moves the definition to list.h. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Eilon Greenstein <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
92a2e1cb53
commit
008208c6b2
3 changed files with 16 additions and 6 deletions
|
|
@ -2234,9 +2234,6 @@ static void __perf_event_sync_stat(struct perf_event *event,
|
|||
perf_event_update_userpage(next_event);
|
||||
}
|
||||
|
||||
#define list_next_entry(pos, member) \
|
||||
list_entry(pos->member.next, typeof(*pos), member)
|
||||
|
||||
static void perf_event_sync_stat(struct perf_event_context *ctx,
|
||||
struct perf_event_context *next_ctx)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue