[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1460438960-32060-6-git-send-email-bill.huey@gmail.com>
Date: Mon, 11 Apr 2016 22:29:13 -0700
From: "Bill Huey (hui)" <bill.huey@...il.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Steven Rostedt <rostedt@...dmis.org>,
linux-kernel@...r.kernel.org
Cc: Dario Faggioli <raistlin@...ux.it>,
Alessandro Zummo <a.zummo@...ertech.it>,
Thomas Gleixner <tglx@...utronix.de>,
KY Srinivasan <kys@...rosoft.com>,
Amir Frenkel <frenkel.amir@...il.com>,
Bdale Garbee <bdale@....com>
Subject: [PATCH RFC v0 05/12] Task tracking per file descriptor
Task tracking per file descriptor for thread death clean up.
Signed-off-by: Bill Huey (hui) <bill.huey@...il.com>
---
drivers/rtc/class.c | 3 +++
include/linux/rtc.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 74fd974..ad570b9 100644
--- a/drivers/rtc/class.c
+++ b/drivers/rtc/class.c
@@ -201,6 +201,9 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev,
rtc->irq_freq = 1;
rtc->max_user_freq = 64;
rtc->dev.parent = dev;
+#ifdef CONFIG_RTC_CYCLIC
+ INIT_LIST_HEAD(&rtc->rt_overrun_tasks); //struct list_head
+#endif
rtc->dev.class = rtc_class;
rtc->dev.groups = rtc_get_dev_attribute_groups();
rtc->dev.release = rtc_device_release;
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index b693ada..1424550 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -114,6 +114,9 @@ struct rtc_timer {
struct rtc_device {
struct device dev;
struct module *owner;
+#ifdef CONFIG_RTC_CYCLIC
+ struct list_head rt_overrun_tasks;
+#endif
int id;
char name[RTC_DEVICE_NAME_SIZE];
--
2.5.0
Powered by blists - more mailing lists