Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932240AbcDLFcW (ORCPT ); Tue, 12 Apr 2016 01:32:22 -0400 Received: from mail-ob0-f194.google.com ([209.85.214.194]:36123 "EHLO mail-ob0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755711AbcDLF3a (ORCPT ); Tue, 12 Apr 2016 01:29:30 -0400 From: "Bill Huey (hui)" To: Peter Zijlstra , Steven Rostedt , linux-kernel@vger.kernel.org Cc: Dario Faggioli , Alessandro Zummo , Thomas Gleixner , KY Srinivasan , Amir Frenkel , Bdale Garbee Subject: [PATCH RFC v0 05/12] Task tracking per file descriptor Date: Mon, 11 Apr 2016 22:29:13 -0700 Message-Id: <1460438960-32060-6-git-send-email-bill.huey@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460438960-32060-1-git-send-email-bill.huey@gmail.com> References: <1460438960-32060-1-git-send-email-bill.huey@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 38 Task tracking per file descriptor for thread death clean up. Signed-off-by: Bill Huey (hui) --- 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