Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbcDRGo3 (ORCPT ); Mon, 18 Apr 2016 02:44:29 -0400 Received: from mail-ob0-f193.google.com ([209.85.214.193]:33251 "EHLO mail-ob0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbcDRGoY (ORCPT ); Mon, 18 Apr 2016 02:44:24 -0400 From: "Bill Huey (hui)" To: Peter Zijlstra , Steven Rostedt , Alessandro Zummo , linux-kernel@vger.kernel.org Cc: luca abeni , Juri Lelli , Mike Galbraith , Thomas Gleixner Subject: [PATCH RFC v2 05/12] Task tracking per file descriptor Date: Sun, 17 Apr 2016 23:44:07 -0700 Message-Id: <1460961854-3449-6-git-send-email-bill.huey@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460961854-3449-1-git-send-email-bill.huey@gmail.com> References: <1460961854-3449-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