Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4168849pxb; Tue, 26 Jan 2021 14:22:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrRdTjPACCXBjjAQKlJvQxnHGU08VsUb2JOqu6oMe4N6TlkHs16YqQQV0vPwPkrwDrfbEt X-Received: by 2002:a17:906:bfcc:: with SMTP id us12mr4736700ejb.163.1611699732508; Tue, 26 Jan 2021 14:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611699732; cv=none; d=google.com; s=arc-20160816; b=TP3fXNRcLfvho0Q9SAnJXOKvWpBZZDd2pfngEebX4lfA8Ifn6Br8fsL3hqGuuIDShn /zr99Uoa3Dk9Nz0Pwduh49JNywHvmylSjfLhkcUiRHzDmBChtEAy1idmxvl+YVPlCPFk EIW4m5GTQ2w4kXy3PcCfyxcl7CnkaZ88LjYeFUwaaxsagD8na7Nk1xY3e1IjgUxe+qUa LELY3BmTeKI0I2G6h/0y6GsCn/RHXC3z26Jh+1UC0xS/Sysq+19bje/QJAQ1L0Wv+raK PI2v6S7wRPyEHNzcRy3NpwV52pUK3i64F1ux9b7TEyZmKBy3SNUbJ6zK0FnoKOHem6xa XGXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gdta58PoWmtu6e7uN9H109dtWomdId8gGVo4iHeqt88=; b=SjfzraCaMEDC+3a4SBjzeti7ok6/onRioBitOHLm7NICMO9iXevxuyjbpofSNsxWlf 5swawwDs8c7rxwWgrqYYJrTgR25rUUe7UVxl0TkjtzauR/k2ibOrOq19hjFp9KZxDehd aWyg1E3+GE/o+8wm72PHWBoc7iEwwY/X/1KXHlNetw3JYt8LaiibaLVB5+61ARn/7qYN vD/LXbQcv3dvN/jRlGUXicJn2sge8wOuuxSLPRExAT7Pey40TjpGTc77JKaRE5AuThGN S9QQpjmWrFjtLKe5BlJkWeXEf2OkogVRCloMtiHGsvtsPvUEzDFesqrYEQtpi+Hwqy1Y 64Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fV8fdKne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm27si9180366edb.83.2021.01.26.14.21.47; Tue, 26 Jan 2021 14:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fV8fdKne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732443AbhAZFXh (ORCPT + 99 others); Tue, 26 Jan 2021 00:23:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbhAYJ7H (ORCPT ); Mon, 25 Jan 2021 04:59:07 -0500 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEAF8C061352 for ; Mon, 25 Jan 2021 01:58:03 -0800 (PST) Received: by mail-oo1-xc2f.google.com with SMTP id u7so2523592ooq.0 for ; Mon, 25 Jan 2021 01:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gdta58PoWmtu6e7uN9H109dtWomdId8gGVo4iHeqt88=; b=fV8fdKnejyryuPs55rwRZ26aKdhNIT3xcjuCTD4stVmVjK9A1Fsol8Vn6za2Nlq4Yi eePY7y51sjRcXiOXpryPTdyrIiwuYHvuOYnMI1h9F50r+9PGxLXHjo3hbO+Q0ayAjV7p O5HUYj2H8k+4UJNvSKkh1id4l7siWnNSYTHs3+sdQCn8RANUrulO0aIiKVCGRJunNrGU K0uXdfoDc64dH8RnS3go5g00/qj2c0pHskeLOs8JskTek2FRN2M865HXrG6i7P1cZEMw GAQBXl0rTZOiV96/ag9ypNwe3U+cX8u6TqSy3P/dBjOXN2j3LqmJorHHGnI0l7B6z14U JoxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gdta58PoWmtu6e7uN9H109dtWomdId8gGVo4iHeqt88=; b=SNCIgP1AYLU9j7GTjx33aAqG/dmjJbTP1TtGynsFLQpm54aPRT4fZ5MzYRHluvLBdZ cMlulsAKq50SxgqpZpeZI7wDqEVx+6GztMLN+d7NGT3XSanawY9RT4m66aHdWglOfzfD Q3yBvtQlWv4BNGok65Sma/Mk3Kgg5ubi7th2esRIGc1QqqHBiv6/rMYrAd2l/7+zY2mi 4T911gYPKDt+xh0X+bnFeS7WlC0rqjC5p3eBpIQyS7VDJ6s4nURXflIkRrTzvTvGWJBi QLr7eg68l8gA4cdsjtxwhgNaGKdbB7NqT+F1NzBHByR3FwXWRyo46Fd+JYd2hHf8eGD+ WZKg== X-Gm-Message-State: AOAM533GhPszGGMu7awWVuKljQdA0bH9+sZwpZclBnOkH16hB6sKFVG+ WcfyQ+fxBGJ7RWj8Gqgzq8ssZA4yW0ILul8LU/rx/ptvOqQ= X-Received: by 2002:a4a:51c3:: with SMTP id s186mr8553ooa.6.1611568683019; Mon, 25 Jan 2021 01:58:03 -0800 (PST) MIME-Version: 1.0 References: <20210125095445.1524477-1-jens.wiklander@linaro.org> In-Reply-To: <20210125095445.1524477-1-jens.wiklander@linaro.org> From: Jens Wiklander Date: Mon, 25 Jan 2021 10:57:52 +0100 Message-ID: Subject: Re: [PATCH] tee: optee: remove need_resched() before cond_resched() To: Rouven Czerwinski , Sumit Garg Cc: Arnd Bergmann , Linux Kernel Mailing List , op-tee@lists.trustedfirmware.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rouven and Sumit, On Mon, Jan 25, 2021 at 10:55 AM Jens Wiklander wrote: > > Testing need_resched() before cond_resched() is not needed as an > equivalent test is done internally in cond_resched(). So drop the > need_resched() test. > > Fixes: dcb3b06d9c34 ("tee: optee: replace might_sleep with cond_resched") > Signed-off-by: Jens Wiklander > --- > drivers/tee/optee/call.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Can you please test to see that this works in your setups too? Thanks, Jens