From: tip-bot for Geliang Tang <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: tbaicar@codeaurora.org, bp@suse.de, lenb@kernel.org,
tglx@linutronix.de, rjw@rjwysocki.net, geliangtang@gmail.com,
linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com
Subject: [tip:ras/core] ACPI/APEI: Use setup_deferrable_timer()
Date: Wed, 19 Apr 2017 03:09:54 -0700 [thread overview]
Message-ID: <tip-7237c75b2717d59ebf2c2595d416e16a160154e1@git.kernel.org> (raw)
In-Reply-To: <3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com>
Commit-ID: 7237c75b2717d59ebf2c2595d416e16a160154e1
Gitweb: http://git.kernel.org/tip/7237c75b2717d59ebf2c2595d416e16a160154e1
Author: Geliang Tang <geliangtang@gmail.com>
AuthorDate: Tue, 18 Apr 2017 20:45:28 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 19 Apr 2017 12:00:14 +0200
ACPI/APEI: Use setup_deferrable_timer()
Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Link: http://lkml.kernel.org/r/3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/acpi/apei/ghes.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index b192b42..33ca196 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1005,9 +1005,8 @@ static int ghes_probe(struct platform_device *ghes_dev)
switch (generic->notify.type) {
case ACPI_HEST_NOTIFY_POLLED:
- ghes->timer.function = ghes_poll_func;
- ghes->timer.data = (unsigned long)ghes;
- init_timer_deferrable(&ghes->timer);
+ setup_deferrable_timer(&ghes->timer, ghes_poll_func,
+ (unsigned long)ghes);
ghes_add_timer(ghes);
break;
case ACPI_HEST_NOTIFY_EXTERNAL:
prev parent reply other threads:[~2017-04-19 10:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-11 0:46 [PATCH] ACPI / APEI: use setup_deferrable_timer Geliang Tang
2017-03-11 0:46 ` [PATCH] ambassador: use setup_timer Geliang Tang
2017-03-13 6:47 ` David Miller
2017-03-11 0:46 ` [PATCH] auxdisplay: " Geliang Tang
2017-03-13 17:27 ` Paul Burton
2017-03-11 0:46 ` [PATCH] Bluetooth: bluecard: " Geliang Tang
2017-03-27 14:11 ` Marcel Holtmann
2017-03-11 0:46 ` [PATCH] drop_monitor: " Geliang Tang
2017-03-13 6:47 ` David Miller
2017-03-11 0:47 ` [PATCH] fs/ocfs2/cluster: " Geliang Tang
2017-03-11 0:47 ` [PATCH] libata: use setup_deferrable_timer Geliang Tang
2017-03-13 17:07 ` Tejun Heo
2017-03-14 18:06 ` [PATCH] ACPI / APEI: " Baicar, Tyler
2017-04-18 14:41 ` Rafael J. Wysocki
2017-04-18 17:21 ` Borislav Petkov
2017-04-19 10:09 ` tip-bot for Geliang Tang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-7237c75b2717d59ebf2c2595d416e16a160154e1@git.kernel.org \
--to=tipbot@zytor.com \
--cc=bp@suse.de \
--cc=geliangtang@gmail.com \
--cc=hpa@zytor.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=tbaicar@codeaurora.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome