Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2820228imu; Thu, 17 Jan 2019 23:19:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5hed/JGZnxh1YHZ/n7EhXn02Pkxm7fF/e4D5svqMV/yI12vXj+Dw3ehB7EEQy4XIbRpJBo X-Received: by 2002:a62:f54f:: with SMTP id n76mr18328965pfh.59.1547795974773; Thu, 17 Jan 2019 23:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547795974; cv=none; d=google.com; s=arc-20160816; b=spB/fekTPTDqzN8MkeUa8SL+0l0uqUhEkzWTkWS0k8Bb1s2hwMwkmoe4LnvfMSxn2O B6KfhSIJ27EscwNV7J5+qr0SlNBnmpigt4vybokME9thLxFCkmm4Q5Yi1JQFI4WtS82E cflUV4oEcZyHiOheug4L/jzAkVdTikACXt5CPSBPbgyoXzmCFkoo+xEKGXRT+9qNSpcG T6BeZYgK6j42agLOPqJFiqjjrMk9Nxf2XiqkLXww8rOMhF6/W6bAmjogNMa5HIEBs5vs dLvSdXEAf9K6rrsEI/3aXnxz0z5NQTgBJPy2CB9CIxzjxqZnjbfI73g8Thn6QpgO64+X O2Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hXAlduV2yxce9e5PCjDGBvlCj5dgFqiWs1FuLZstpeo=; b=gcZ3x8vO1QrsmtXZw8PDdv7Qgoq0Eeztr9WfNN3KlRJVJB/lKzvfL+GseML55/pXBD i7ZM23jpulASFSAIB5wGwllEFk90SFfqDPpGQY/npkb5rtGqWhLFxdQgFmftqBVGqZUA 8y9njsAqQogZVwDiq9pXe3lF/HXI1nW4tyyCR3wp3YH+PXQh5WbkLzBLQIBQmihT3bVd Pazu7pIAZ8r/NMQGds4BnepCqCu/eOi759YCNeyF3ULalV/TveT+Nb8U0DJNm4NdrEbR EtlfGB3BudEDvPhd/CRGjt2ZWmURLIXLgpI76KfkxWqLHR3rUGlhk0X5VCNJy1/rVH3j 30Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1sj9enjs; 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 o10si3854757pgg.373.2019.01.17.23.19.14; Thu, 17 Jan 2019 23:19:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1sj9enjs; 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 S1727363AbfARHRz (ORCPT + 99 others); Fri, 18 Jan 2019 02:17:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:48654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727300AbfARHRz (ORCPT ); Fri, 18 Jan 2019 02:17:55 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74E7A20855; Fri, 18 Jan 2019 07:17:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547795875; bh=k53VbQQboS0cOMnK5hdtGl8IMPbKmIiqg76sKvLNXUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1sj9enjst+XOPRguBL5aedJRqDDvL+2dSRTMqZK9KG7oARRI7xyYr0ITWtk8kakqk b3yZ8tyF9eZ2QMbZHw9liAsknnZRoOU6WZmLSEgKyfALGqwx+yo1KqVkGnlTelZlbX y/hzLidVkQmjyAiJoDt5pSi4mu3hNIbeyWGoLKoo= Date: Fri, 18 Jan 2019 08:17:52 +0100 From: Greg Kroah-Hartman To: Hugo Lefeuvre Cc: devel@driverdev.osuosl.org, Todd Kjos , Peter Zijlstra , Greg Hartman , linux-kernel@vger.kernel.org, Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Ingo Molnar , Joel Fernandes , Martijn Coenen , Alistair Strachan , Christian Brauner Subject: Re: [PATCH] sched/wait: introduce wait_event_freezable_hrtimeout Message-ID: <20190118071752.GG11050@kroah.com> References: <20190117224135.GC8100@hle-laptop.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190117224135.GC8100@hle-laptop.local> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 11:41:35PM +0100, Hugo Lefeuvre wrote: > introduce wait_event_freezable_hrtimeout, an interruptible and freezable > version of wait_event_hrtimeout. > > simplify handle_vsoc_cond_wait (drivers/staging/android/vsoc.c) using this > newly added helper and remove useless includes. > > Signed-off-by: Hugo Lefeuvre > --- > drivers/staging/android/vsoc.c | 69 +++++----------------------------- > include/linux/wait.h | 25 ++++++++++-- code in drivers/staging/ should be self-contained, and not, if at all possible, ever force additional changes on "core" kernel code. Are you sure that the vsoc code can't use one of the current wait macros? Why is it so special and unique that no one else in the kernel has ever needed this before it came along? thanks, greg k-h