Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4433ima; Thu, 31 Jan 2019 21:39:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kUxYB84mjcuoX9kMyW9f49KSb1IL7JjK30c7fv9uk8fZL+beeFwS13jT99zMEkEnePLSM X-Received: by 2002:a62:64d7:: with SMTP id y206mr38034878pfb.84.1548999570477; Thu, 31 Jan 2019 21:39:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548999570; cv=none; d=google.com; s=arc-20160816; b=vJDgvE84mDr9hF0wekHcCpSAG2w1ThGe6yhZnv/NrCSTxktRlBRCupw9lREQ5G07bM BnJvLV5Wlrnwfj/U1sMO6ktWHc34NaLMPSWQ/rxKvY59nXIoGxNPWObjyAPFyTsu3AQ0 04cxJyfC510H8oTVTu9TO6mylgKJZaoo68TAPHKURx08W7aI+jcNbzsUVlf0FzWZ6JH9 j61PT/sqfuCSebMl8jGyDuo3Fc2z+csfbY+qozkiPs9gaCCcppswAnl6dj1IyIOGAtxJ NtjIWFmDG4VOjDqj7p43kK1RPCooOT2vGqOOmdyVOMxOuRT0mYtbzbR7fFI1hQosgYUM DMLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=08wFSan4NPrHeLz6za3o54A1kvte0akyOOlIPzeVGpY=; b=FRQCNiWTx3X9/jCkCTCutp6SnjHPiMQhHKWgxeoGIteMQgNBlGT8DuJwrDI7/1Z/i4 BLf70e6IsonBn0WYRbPS7mxvpSx1nBwne3PcgpUWMy8q6s+hllZwoLYOt6pyS/fikz4Z hDqsGVUdwUh0gY32hWP+qL/1/tK4vV2MBeIekvOlg5IeoG/07BWTCRTxn2Ks+yeRAdWa 201Hejk+UZ8J4n0FZ4Tj+2LZ5EcQECH8i7TlMSP+oOvQyIkD1MXRBNgcGLHb3wRKogy1 4PP/idDJ9zbnuPABTJBsfywPI6VAvzHfz6VMI+j354FpXcvDqNTmgxpJon8VRpWCKaOM n7gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si6190727pgi.513.2019.01.31.21.39.15; Thu, 31 Jan 2019 21:39:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbfBAFhQ (ORCPT + 99 others); Fri, 1 Feb 2019 00:37:16 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39143 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfBAFhP (ORCPT ); Fri, 1 Feb 2019 00:37:15 -0500 X-Originating-IP: 141.70.45.131 Received: from localhost (hadi-gate-vlan-851.hadiko.whka.de [141.70.45.131]) (Authenticated sender: hle@owl.eu.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 5E3E8C0002; Fri, 1 Feb 2019 05:37:11 +0000 (UTC) Date: Fri, 1 Feb 2019 06:37:10 +0100 From: Hugo Lefeuvre To: Greg Kroah-Hartman Cc: Greg Hartman , Alistair Strachan , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Christian Brauner , Ingo Molnar , Peter Zijlstra , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Joel Fernandes Subject: [PATCH 0/3] sched/wait, staging/android: simplification and optimization of freeze related code Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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