Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756010AbcDLF3j (ORCPT ); Tue, 12 Apr 2016 01:29:39 -0400 Received: from mail-ob0-f195.google.com ([209.85.214.195]:34311 "EHLO mail-ob0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755859AbcDLF3c (ORCPT ); Tue, 12 Apr 2016 01:29:32 -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 07/12] kernel/userspace additions for addition ioctl() support for rtc Date: Mon, 11 Apr 2016 22:29:15 -0700 Message-Id: <1460438960-32060-8-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: 1038 Lines: 26 Add additional ioctl() values to rtc so that it can 'admit' the calling thread into a red-black tree for tracking, set the execution slot pattern, support for setting whether read() will yield or block. Signed-off-by: Bill Huey (hui) --- include/uapi/linux/rtc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h index f8c82e6..76c9254 100644 --- a/include/uapi/linux/rtc.h +++ b/include/uapi/linux/rtc.h @@ -94,6 +94,10 @@ struct rtc_pll_info { #define RTC_VL_READ _IOR('p', 0x13, int) /* Voltage low detector */ #define RTC_VL_CLR _IO('p', 0x14) /* Clear voltage low information */ +#define RTC_OV_ADMIT _IOW('p', 0x15, unsigned long) /* Set test */ +#define RTC_OV_REPLEN _IOW('p', 0x16, unsigned long) /* Set test */ +#define RTC_OV_YIELD _IOW('p', 0x17, unsigned long) /* Set test */ + /* interrupt flags */ #define RTC_IRQF 0x80 /* Any of the following is active */ #define RTC_PF 0x40 /* Periodic interrupt */ -- 2.5.0