From patchwork Fri Oct 2 12:22:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 313986 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:1081:0:0:0:0 with SMTP id r1csp1414415ilj; Fri, 2 Oct 2020 05:29:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbmwc4pfrWecmPiZGRwoA4QizTljZttodxS0Eu2AfIo0Z+W3x/5Ksy7TtR6b+40YeFphpX X-Received: by 2002:a17:907:10db:: with SMTP id rv27mr1930091ejb.223.1601641795623; Fri, 02 Oct 2020 05:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601641795; cv=none; d=google.com; s=arc-20160816; b=KL9BCXxNrKbgj185kqS3zHNH6Jd3x999abxdpH2S/LQBEiNopod+bCLWlVMm3jIKsj KLgeJ13bVpxTvRZ1DqU7WIdoh9lw2+Vy3fRQ/fGYGAWkSXVbPZwflwiJWTYWpyuqk34G oOiIjDZAU/s+i3J0c9jgboY6g2okO9gwzOb+0QaxTrMq8js7Y7N0mBRlB+mqrKz1TNSh E0lRbvp2JLuFyEwL7AOgDiU2ziX3l85C32RMv4hzYi/XLb+T+/RCDHky3gvbcoVRrsM4 qBeC4m82+VPSilmM3NmOiU+t5GQ1Fr8EiFSvQrOJ0FXjV9jLGEJ8ZSmNykQcGukkRrgc 6wGA== 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:message-id:date:subject:cc:to:from; bh=iQ0qMQK7aOX3td805pw6eHxd8gAEcGzc/sM+nt+GUi4=; b=mECs/4IQJXfozzEji18j4n4KNKZCT5u/RO3inkNAHntgEHnbv9fj9Aav9DStq3zyq7 qIalZN3h2d0DwetwuInHJiyD+UIG5cTm9NvuIZaK5CBG15WNgoHQx9HQBPCBUwH1BwH+ oanwHUPFYGiK8+z+e2IuVL1Vq2MYr/zlE8hH9RJjbN+ZVRGjR6XIVJFDT1wJSJvZytxE tU6MO2k5MOG/t2R9LA0CthQ/fF7HL31VZQEh5UsGGJj4AOvywmEYbSXUrU60RH9wSTHd KtxNrV9ImdmjaT4UfiWYQKQj9nyLxHNIiVvkl7mRiwDIbhsWKx1VwrIuVPp2riRybsZr MVPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si968319edi.564.2020.10.02.05.29.55; Fri, 02 Oct 2020 05:29:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387677AbgJBM3y (ORCPT + 7 others); Fri, 2 Oct 2020 08:29:54 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2946 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726090AbgJBM3x (ORCPT ); Fri, 2 Oct 2020 08:29:53 -0400 Received: from lhreml715-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id BE7E84547CA7565F6D7E; Fri, 2 Oct 2020 13:29:51 +0100 (IST) Received: from DESKTOP-6T4S3DQ.china.huawei.com (10.47.84.119) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 2 Oct 2020 13:29:51 +0100 From: Shiju Jose To: , , , , , , , CC: , Subject: [RFC PATCH 4/7] RAS/CEC: Modify cec_mod_work() for common use Date: Fri, 2 Oct 2020 13:22:32 +0100 Message-ID: <20201002122235.1280-5-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201002122235.1280-1-shiju.jose@huawei.com> References: <20201002122235.1280-1-shiju.jose@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.84.119] X-ClientProxiedBy: lhreml720-chm.china.huawei.com (10.201.108.71) To lhreml715-chm.china.huawei.com (10.201.108.66) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Modify the function cec_mod_work() for the common use with the other error sources. Signed-off-by: Shiju Jose --- drivers/ras/cec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 803e641d8e5c..f869e7a270b8 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c @@ -167,12 +167,12 @@ static void do_spring_cleaning(struct ce_array *ca) /* * @interval in seconds */ -static void cec_mod_work(unsigned long interval) +static void cec_mod_work(struct delayed_work *dwork, unsigned long interval) { unsigned long iv; iv = interval * HZ; - mod_delayed_work(system_wq, &cec_work, round_jiffies(iv)); + mod_delayed_work(system_wq, dwork, round_jiffies(iv)); } static void cec_work_fn(struct work_struct *work) @@ -181,7 +181,7 @@ static void cec_work_fn(struct work_struct *work) do_spring_cleaning(&ce_arr); mutex_unlock(&ce_mutex); - cec_mod_work(decay_interval); + cec_mod_work(&cec_work, decay_interval); } /* @@ -420,7 +420,7 @@ static int decay_interval_set(void *data, u64 val) *(u64 *)data = val; decay_interval = val; - cec_mod_work(decay_interval); + cec_mod_work(&cec_work, decay_interval); return 0; }