Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3739097pxj; Mon, 21 Jun 2021 05:37:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMCNOwW/ToSEF1BKhMDuStnzINijbhbi/sUO/P/93B2aMoHWvmHRnCZvqTTF86EYBiccjt X-Received: by 2002:a17:906:ca4a:: with SMTP id jx10mr24691311ejb.200.1624279064124; Mon, 21 Jun 2021 05:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624279064; cv=none; d=google.com; s=arc-20160816; b=lQl8iqk8temsBWw5JtEO/oOsVldT/83/rGwsaDZwHBhDWb3E+9J/FBifVMlZomH0vY eGRLYVC6JXAN1vHcTBJKxbsIi7Mon5hKBloyOlQzL87K+swjCwCjpK9d4rD75Y7M4Dix M8dMEFL7A+1fP2UagWVI6rRdisaMwMU8OlGkuY8L7aLUpXLKeI1BM6tqCRkXbGDRE1Yw blRGZ4i/q34Qmqp9HPbx0qh1vZLmIrgrzfBBacggwBuSoDd8Vr+Upj0t5BjmDC3UHYs4 ugpGXIMz934yqGX6l3UNqWglQ8Vd+dgiMwxw3NAaKeAy3IQIK5QbiY+h9vNp2EDzkUVz qw3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=euPrHxGrbdSW9VrDAhIBZeDpnfSmXLN+b5PLztQHtiI=; b=NorO8C7+JvNn4q/Xhc5tZvfXsfmwz1bNrdE7KUQzjUfH6y/avUWaAXmmhIVfregdFq tWqNApoROmRfZN6TIQYsMDSycLjVIj5ZlHcdu+iHvZKhKu8DGz0ydCN0V3Nk1JAi99Yl c5C5wGWW4GpJuIM00E9SV91uGiYHhkh0LVbPY/h/afTeIvrt+YZ0PRZxRyeveZ3Zf1qE 7f6l+bNHU7c9dxplc+qGhuKVAJ0ZpdaRxHwDdOr8PrbDFHetItdvH1FgVjifJH3EGWQc wfpjgCrcpQxld/1FawHQkqeUUq1aBLePkpT/mnqduzCcMfRsONZEODY1ElUtzZOczSDe Uf2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BYEY9xPg; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si17211803edv.498.2021.06.21.05.37.21; Mon, 21 Jun 2021 05:37:44 -0700 (PDT) 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=@mediatek.com header.s=dk header.b=BYEY9xPg; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbhFUMim (ORCPT + 99 others); Mon, 21 Jun 2021 08:38:42 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:3728 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229663AbhFUMim (ORCPT ); Mon, 21 Jun 2021 08:38:42 -0400 X-UUID: 887999824f0642cbb101dc8722195599-20210621 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=euPrHxGrbdSW9VrDAhIBZeDpnfSmXLN+b5PLztQHtiI=; b=BYEY9xPgLQ2iv9v++FpkGd6Fj24sDWk5iTn0oZap5coZvCk0mrZDrVMgheEGU+jjlrxqfXnU3X0ekZO7sC5lReZnuyryV7T3B33UW+PaUXl0zxKY7OebOPx8wOQhVMFXGm/CYn7OyuGbXXENMRKZC8aamU6TsLHvw5x/2/N0pvo=; X-UUID: 887999824f0642cbb101dc8722195599-20210621 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1674989814; Mon, 21 Jun 2021 20:31:03 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 21 Jun 2021 20:30:58 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 21 Jun 2021 20:30:57 +0800 Message-ID: Subject: Re: [PATCH 1/1] psi: stop relying on timer_pending for poll_work rescheduling From: YT Chang To: Suren Baghdasaryan , CC: , , , , , , , , , , , , , , , , , , Date: Mon, 21 Jun 2021 20:30:57 +0800 In-Reply-To: <20210617212654.1529125-1-surenb@google.com> References: <20210617212654.1529125-1-surenb@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 5B4C12E4F793A106C228712A7701E8C268B27DA9BDF5A3A05ACA37B3B2E431DF2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIxLTA2LTE3IGF0IDE0OjI2IC0wNzAwLCBTdXJlbiBCYWdoZGFzYXJ5YW4gd3Jv dGU6DQo+IFBzaSBwb2xsaW5nIG1lY2hhbmlzbSBpcyB0cnlpbmcgdG8gbWluaW1pemUgdGhlIG51 bWJlciBvZiB3YWtldXB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