[PATCH 0/3] sched/wait, staging/android: simplification and optimization of freeze related code

From: Hugo Lefeuvre
Date: Fri Feb 01 2019 - 00:37:17 EST


This patchset changes the wait api to use freezable_schedule when
possible and adds a new wait_event_freezable_hrtimeout method.

wait_event_freezable_hrtimeout is then used to greatly simplify
handle_vsoc_cond_wait in the android vsoc driver.

This reduces the size of the vsoc driver and allows for potential
performance gain during freeze in the wait api.

This is a follow up of my previous patch "sched/wait: introduce
wait_event_freezable_hrtimeout"[0]. More information related to the
performance gain by using freezable_schedule can be found in the
previous discussion[1].

[0] https://lkml.org/lkml/2019/1/17/877
[1] https://lkml.org/lkml/2019/1/19/58

Hugo Lefeuvre (3):
sched/wait: use freezable_schedule when possible
sched/wait: introduce wait_event_freezable_hrtimeout
staging/android: simplify handle_vsoc_cond_wait

drivers/staging/android/vsoc.c | 69 +++++-----------------------------
include/linux/wait.h | 31 +++++++++++----
2 files changed, 34 insertions(+), 66 deletions(-)

--
2.20.1