From patchwork Fri Feb 11 13:50:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Roberto Jimenez X-Patchwork-Id: 82758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yi0-f56.google.com (mail-yi0-f56.google.com [209.85.218.56]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id E1EBAB712F for ; Sat, 12 Feb 2011 00:56:06 +1100 (EST) Received: by yie21 with SMTP id 21sf1882175yie.11 for ; Fri, 11 Feb 2011 05:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:mime-version:x-beenthere:received-spf:from:to :cc:subject:date:message-id:x-mailer:in-reply-to:references :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; bh=5xxMMBSdvwrRxAXF3cDWQEHSXtFABab2RoFg003fO1s=; b=Q28VGdYfkX9zs3pwFeePRJU+FrDdxOmSAN8jfdAJqJixSUZFq6E0kqXxjYGP7LG76Z OWOAFthkqVuDDqXAdUbic8kBMG88N3TSbGinAl/RPuGSghreGdptu/QeNVVzFoPEUkXz 1jEr/RnZPB9WidUeTu/icjFUE8tV2n2F4x/7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=21iZ51pDecsHNbuMQEF6AXyJjWCgDWQcYMQez5Rv9M68eStzq/b4ygDSNgsZC5huFO JofHdI48gKuF6dkNUQUMNVTdrzdmL88HEPgzususa2TxrHvxziZYxooxRNcLd2E/bK3a JKWIUEufCTXk2ZRcyWFP77LF1h/g4ot6RRSqs= Received: by 10.100.154.20 with SMTP id b20mr19216ane.76.1297432562736; Fri, 11 Feb 2011 05:56:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.100.26.21 with SMTP id 21ls591729anz.2.p; Fri, 11 Feb 2011 05:56:02 -0800 (PST) Received: by 10.100.242.11 with SMTP id p11mr159697anh.14.1297432562482; Fri, 11 Feb 2011 05:56:02 -0800 (PST) Received: by 10.100.242.11 with SMTP id p11mr159696anh.14.1297432562466; Fri, 11 Feb 2011 05:56:02 -0800 (PST) Received: from mail-gy0-f179.google.com (mail-gy0-f179.google.com [209.85.160.179]) by gmr-mx.google.com with ESMTPS id w40si318880ana.3.2011.02.11.05.56.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Feb 2011 05:56:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.179 is neither permitted nor denied by best guess record for domain of mroberto@cpti.cetuc.puc-rio.br) client-ip=209.85.160.179; Received: by mail-gy0-f179.google.com with SMTP id 8so1223397gyg.24 for ; Fri, 11 Feb 2011 05:56:01 -0800 (PST) Received: by 10.151.106.16 with SMTP id i16mr614425ybm.65.1297432561247; Fri, 11 Feb 2011 05:56:01 -0800 (PST) Received: from localhost.localdomain ([139.82.178.36]) by mx.google.com with ESMTPS id c8sm803366ybn.11.2011.02.11.05.55.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Feb 2011 05:56:00 -0800 (PST) From: Marcelo Roberto Jimenez To: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org Cc: john.stultz@linaro.org, tglx@linutronix.de, a.zummo@towertech.it, Marcelo Roberto Jimenez Subject: [rtc-linux] [PATCH] RTC: Include information about UIE and PIE in RTC driver proc. Date: Fri, 11 Feb 2011 11:50:24 -0200 Message-Id: <1297432224-14001-2-git-send-email-mroberto@cpti.cetuc.puc-rio.br> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1297432224-14001-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br> References: <1297432224-14001-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br> X-Original-Sender: mroberto@cpti.cetuc.puc-rio.br X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.179 is neither permitted nor denied by best guess record for domain of mroberto@cpti.cetuc.puc-rio.br) smtp.mail=mroberto@cpti.cetuc.puc-rio.br Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Generic RTC code is always able to provide the necessary information about update and periodic interrupts. This patch add such information to the proc interface. Signed-off-by: Marcelo Roberto Jimenez --- drivers/rtc/rtc-proc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-proc.c b/drivers/rtc/rtc-proc.c index c086fc3..a61091c 100644 --- a/drivers/rtc/rtc-proc.c +++ b/drivers/rtc/rtc-proc.c @@ -69,6 +69,14 @@ static int rtc_proc_show(struct seq_file *seq, void *offset) alrm.enabled ? "yes" : "no"); seq_printf(seq, "alrm_pending\t: %s\n", alrm.pending ? "yes" : "no"); + seq_printf(seq, "update IRQ enabled\t: %s\n", + (rtc->uie_rtctimer.enabled) ? "yes" : "no"); + seq_printf(seq, "periodic IRQ enabled\t: %s\n", + (rtc->pie_enabled) ? "yes" : "no"); + seq_printf(seq, "periodic IRQ frequency\t: %d\n", + rtc->irq_freq); + seq_printf(seq, "max user IRQ frequency\t: %d\n", + rtc->max_user_freq); } seq_printf(seq, "24hr\t\t: yes\n");