All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20121022140658.GA18993@arwen.pp.htv.fi>

diff --git a/a/1.1.hdr b/a/1.1.hdr
deleted file mode 100644
index 5a32186..0000000
--- a/a/1.1.hdr
+++ /dev/null
@@ -1,3 +0,0 @@
-Content-Type: text/plain; charset=us-ascii
-Content-Disposition: inline
-Content-Transfer-Encoding: quoted-printable
diff --git a/a/1.2.hdr b/a/1.2.hdr
deleted file mode 100644
index 8c3978e..0000000
--- a/a/1.2.hdr
+++ /dev/null
@@ -1,2 +0,0 @@
-Content-Type: text/x-csrc; charset=us-ascii
-Content-Disposition: attachment; filename="rtctest.c"
diff --git a/a/1.2.txt b/a/1.2.txt
deleted file mode 100644
index 1e06f46..0000000
--- a/a/1.2.txt
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
- *      Real Time Clock Driver Test/Example Program
- *
- *      Compile with:
- *		     gcc -s -Wall -Wstrict-prototypes rtctest.c -o rtctest
- *
- *      Copyright (C) 1996, Paul Gortmaker.
- *
- *      Released under the GNU General Public License, version 2,
- *      included herein by reference.
- *
- */
-
-#include <stdio.h>
-#include <linux/rtc.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
-
-
-/*
- * This expects the new RTC class driver framework, working with
- * clocks that will often not be clones of what the PC-AT had.
- * Use the command line to specify another RTC if you need one.
- */
-static const char default_rtc[] = "/dev/rtc0";
-
-
-int main(int argc, char **argv)
-{
-	int i, fd, retval, irqcount = 0;
-	unsigned long tmp, data;
-	struct rtc_time rtc_tm;
-	const char *rtc = default_rtc;
-
-	switch (argc) {
-	case 2:
-		rtc = argv[1];
-		/* FALLTHROUGH */
-	case 1:
-		break;
-	default:
-		fprintf(stderr, "usage:  rtctest [rtcdev]\n");
-		return 1;
-	}
-
-	fd = open(rtc, O_RDONLY);
-
-	if (fd ==  -1) {
-		perror(rtc);
-		exit(errno);
-	}
-
-	fprintf(stderr, "\n\t\t\tRTC Driver Test Example.\n\n");
-
-	/* Turn on update interrupts (one per second) */
-	retval = ioctl(fd, RTC_UIE_ON, 0);
-	if (retval == -1) {
-		if (errno == ENOTTY) {
-			fprintf(stderr,
-				"\n...Update IRQs not supported.\n");
-			goto test_READ;
-		}
-		perror("RTC_UIE_ON ioctl");
-		exit(errno);
-	}
-
-	fprintf(stderr, "Counting 5 update (1/sec) interrupts from reading %s:",
-			rtc);
-	fflush(stderr);
-	for (i=1; i<6; i++) {
-		/* This read will block */
-		retval = read(fd, &data, sizeof(unsigned long));
-		if (retval == -1) {
-			perror("read");
-			exit(errno);
-		}
-		fprintf(stderr, " %d",i);
-		fflush(stderr);
-		irqcount++;
-	}
-
-	fprintf(stderr, "\nAgain, from using select(2) on /dev/rtc:");
-	fflush(stderr);
-	for (i=1; i<6; i++) {
-		struct timeval tv = {5, 0};     /* 5 second timeout on select */
-		fd_set readfds;
-
-		FD_ZERO(&readfds);
-		FD_SET(fd, &readfds);
-		/* The select will wait until an RTC interrupt happens. */
-		retval = select(fd+1, &readfds, NULL, NULL, &tv);
-		if (retval == -1) {
-		        perror("select");
-		        exit(errno);
-		}
-		/* This read won't block unlike the select-less case above. */
-		retval = read(fd, &data, sizeof(unsigned long));
-		if (retval == -1) {
-		        perror("read");
-		        exit(errno);
-		}
-		fprintf(stderr, " %d",i);
-		fflush(stderr);
-		irqcount++;
-	}
-
-	/* Turn off update interrupts */
-	retval = ioctl(fd, RTC_UIE_OFF, 0);
-	if (retval == -1) {
-		perror("RTC_UIE_OFF ioctl");
-		exit(errno);
-	}
-
-test_READ:
-	/* Read the RTC time/date */
-	retval = ioctl(fd, RTC_RD_TIME, &rtc_tm);
-	if (retval == -1) {
-		perror("RTC_RD_TIME ioctl");
-		exit(errno);
-	}
-
-	fprintf(stderr, "\n\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\n",
-		rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900,
-		rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);
-
-	/* Set the alarm to 5 sec in the future, and check for rollover */
-	rtc_tm.tm_sec += 5;
-	if (rtc_tm.tm_sec >= 60) {
-		rtc_tm.tm_sec %= 60;
-		rtc_tm.tm_min++;
-	}
-	if (rtc_tm.tm_min == 60) {
-		rtc_tm.tm_min = 0;
-		rtc_tm.tm_hour++;
-	}
-	if (rtc_tm.tm_hour == 24)
-		rtc_tm.tm_hour = 0;
-
-	retval = ioctl(fd, RTC_ALM_SET, &rtc_tm);
-	if (retval == -1) {
-		if (errno == ENOTTY) {
-			fprintf(stderr,
-				"\n...Alarm IRQs not supported.\n");
-			goto test_PIE;
-		}
-		perror("RTC_ALM_SET ioctl");
-		exit(errno);
-	}
-
-	/* Read the current alarm settings */
-	retval = ioctl(fd, RTC_ALM_READ, &rtc_tm);
-	if (retval == -1) {
-		perror("RTC_ALM_READ ioctl");
-		exit(errno);
-	}
-
-	fprintf(stderr, "Alarm time now set to %02d:%02d:%02d.\n",
-		rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);
-
-	/* Enable alarm interrupts */
-	retval = ioctl(fd, RTC_AIE_ON, 0);
-	if (retval == -1) {
-		perror("RTC_AIE_ON ioctl");
-		exit(errno);
-	}
-
-	fprintf(stderr, "Waiting 5 seconds for alarm...");
-	fflush(stderr);
-	/* This blocks until the alarm ring causes an interrupt */
-	retval = read(fd, &data, sizeof(unsigned long));
-	if (retval == -1) {
-		perror("read");
-		exit(errno);
-	}
-	irqcount++;
-	fprintf(stderr, " okay. Alarm rang.\n");
-
-	/* Disable alarm interrupts */
-	retval = ioctl(fd, RTC_AIE_OFF, 0);
-	if (retval == -1) {
-		perror("RTC_AIE_OFF ioctl");
-		exit(errno);
-	}
-
-test_PIE:
-	/* Read periodic IRQ rate */
-	retval = ioctl(fd, RTC_IRQP_READ, &tmp);
-	if (retval == -1) {
-		/* not all RTCs support periodic IRQs */
-		if (errno == ENOTTY) {
-			fprintf(stderr, "\nNo periodic IRQ support\n");
-			goto done;
-		}
-		perror("RTC_IRQP_READ ioctl");
-		exit(errno);
-	}
-	fprintf(stderr, "\nPeriodic IRQ rate is %ldHz.\n", tmp);
-
-	fprintf(stderr, "Counting 20 interrupts at:");
-	fflush(stderr);
-
-	/* The frequencies 128Hz, 256Hz, ... 8192Hz are only allowed for root. */
-	for (tmp=2; tmp<=64; tmp*=2) {
-
-		retval = ioctl(fd, RTC_IRQP_SET, tmp);
-		if (retval == -1) {
-			/* not all RTCs can change their periodic IRQ rate */
-			if (errno == ENOTTY) {
-				fprintf(stderr,
-					"\n...Periodic IRQ rate is fixed\n");
-				goto done;
-			}
-			perror("RTC_IRQP_SET ioctl");
-			exit(errno);
-		}
-
-		fprintf(stderr, "\n%ldHz:\t", tmp);
-		fflush(stderr);
-
-		/* Enable periodic interrupts */
-		retval = ioctl(fd, RTC_PIE_ON, 0);
-		if (retval == -1) {
-			perror("RTC_PIE_ON ioctl");
-			exit(errno);
-		}
-
-		for (i=1; i<21; i++) {
-			/* This blocks */
-			retval = read(fd, &data, sizeof(unsigned long));
-			if (retval == -1) {
-				perror("read");
-				exit(errno);
-			}
-			fprintf(stderr, " %d",i);
-			fflush(stderr);
-			irqcount++;
-		}
-
-		/* Disable periodic interrupts */
-		retval = ioctl(fd, RTC_PIE_OFF, 0);
-		if (retval == -1) {
-			perror("RTC_PIE_OFF ioctl");
-			exit(errno);
-		}
-	}
-
-done:
-	fprintf(stderr, "\n\n\t\t\t *** Test complete ***\n");
-
-	close(fd);
-
-	return 0;
-}
diff --git a/a/1.1.txt b/N1/1.txt
similarity index 83%
rename from a/1.1.txt
rename to N1/1.txt
index cbcc0a8..40a231e 100644
--- a/a/1.1.txt
+++ b/N1/1.txt
@@ -75,3 +75,17 @@ the sourcecode for rtctest.
 
 -- 
 balbi
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: rtctest.c
+Type: text/x-csrc
+Size: 5768 bytes
+Desc: not available
+URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121022/d3212336/attachment-0001.bin>
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: signature.asc
+Type: application/pgp-signature
+Size: 836 bytes
+Desc: Digital signature
+URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121022/d3212336/attachment-0001.sig>
diff --git a/a/2.bin b/a/2.bin
deleted file mode 100644
index 73abd8f..0000000
--- a/a/2.bin
+++ /dev/null
@@ -1,17 +0,0 @@
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.12 (GNU/Linux)
-
-iQIcBAEBAgAGBQJQhVMCAAoJEIaOsuA1yqREDeIP/iqMW3LwcpogT0j7ZTvh+Urn
-iqhsbD390R/5lRprXtYOpiZJB7NlvyXWVPdNMIY7qW2ch3EQVixM9HgmuvodakUs
-ZhtKW+lgGDywigoqVWMsDHsnVZap8mtlq1hD9c4mdK0/LWcgn1PvRIF0gZOz9fgq
-ZdS2/MmNMRwFKz9wtGXc5znqNCfVnUPGNHN4kN37pdMliooObBOEbRYitylXyY6d
-LCkZS97cYrbWCVMwF2XUsV1q6fLsbHz4u3XMzc2dZHvxslWvV8mTaREndWh5YowG
-fL6t4jiBW5/It2jZeHR5JNR0MTmkrF//QlQD1o5vQyJQw+8xMLH55sxn3WwNji3H
-w/DA1VVE8m3l68YPrK61M2nkp+XaFaECxyUt+3jSS/4RkMx2/tirCIoNosqnsdpg
-9Stqt2if1qe1nq5Q0qGzedpoM9VSImW4Kh++Pid+NFTh00/xIPc5ZRRWJHjAXyqD
-MykDIUxcf9hBboGd5no5MvyeUFvpdeeWo44uZpuzJvtSb5ZOJWAErZp+OZZi8BR4
-Kh49AQgpCHBPIZrcaTO9GHtBQCUyXUYiaYUcinoGbGqa7dj4zAaMQbDMShsAb9CF
-8we5ajFDXhDjimFp3jX1ET5c6h3H1hNOvqxizGbYXA4cgy7rXIwaxkIeLdb2JATq
-hoNsTcgUDPx0K7a3T6gY
-=St6a
------END PGP SIGNATURE-----
diff --git a/a/2.hdr b/a/2.hdr
deleted file mode 100644
index 3237378..0000000
--- a/a/2.hdr
+++ /dev/null
@@ -1,2 +0,0 @@
-Content-Type: application/pgp-signature; name="signature.asc"
-Content-Description: Digital signature
diff --git a/a/content_digest b/N1/content_digest
index 3f10165..c4b7be9 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,21 +1,11 @@
  "ref\01350899218-13624-1-git-send-email-balbi@ti.com\0"
  "ref\020121022133023.GC14033@arwen.pp.htv.fi\0"
  "ref\0CAM=Q2ctS3hxngk5efcvScAdv-2GtH2pHRZoxRhRTiOWmQA-AXw@mail.gmail.com\0"
- "From\0Felipe Balbi <balbi@ti.com>\0"
- "Subject\0Re: [PATCH 0/8] I2C patches for v3.8 merge window\0"
+ "From\0balbi@ti.com (Felipe Balbi)\0"
+ "Subject\0[PATCH 0/8] I2C patches for v3.8 merge window\0"
  "Date\0Mon, 22 Oct 2012 17:06:58 +0300\0"
- "To\0Shubhrajyoti Datta <omaplinuxkernel@gmail.com>\0"
- "Cc\0balbi@ti.com"
-  linux-i2c@vger.kernel.org
-  Linux OMAP Mailing List <linux-omap@vger.kernel.org>
-  Tony Lindgren <tony@atomide.com>
-  Benoit Cousson <b-cousson@ti.com>
-  Linux ARM Kernel Mailing List <linux-arm-kernel@lists.infradead.org>
-  w.sang@pengutronix.de
-  ben-linux@fluff.org
-  Shubhrajyoti Datta <shubhrajyoti@ti.com>
- " Santosh Shilimkar <santosh.shilimkar@ti.com>\0"
- "\02:1.1\0"
+ "To\0linux-arm-kernel@lists.infradead.org\0"
+ "\00:1\0"
  "b\0"
  "Hi,\n"
  "\n"
@@ -93,288 +83,20 @@
  "> > balbi\n"
  "\n"
  "-- \n"
- balbi
- "\02:1.2\0"
- "fn\0rtctest.c\0"
- "b\0"
- "/*\n"
- " *      Real Time Clock Driver Test/Example Program\n"
- " *\n"
- " *      Compile with:\n"
- " *\t\t     gcc -s -Wall -Wstrict-prototypes rtctest.c -o rtctest\n"
- " *\n"
- " *      Copyright (C) 1996, Paul Gortmaker.\n"
- " *\n"
- " *      Released under the GNU General Public License, version 2,\n"
- " *      included herein by reference.\n"
- " *\n"
- " */\n"
- "\n"
- "#include <stdio.h>\n"
- "#include <linux/rtc.h>\n"
- "#include <sys/ioctl.h>\n"
- "#include <sys/time.h>\n"
- "#include <sys/types.h>\n"
- "#include <fcntl.h>\n"
- "#include <unistd.h>\n"
- "#include <stdlib.h>\n"
- "#include <errno.h>\n"
- "\n"
- "\n"
- "/*\n"
- " * This expects the new RTC class driver framework, working with\n"
- " * clocks that will often not be clones of what the PC-AT had.\n"
- " * Use the command line to specify another RTC if you need one.\n"
- " */\n"
- "static const char default_rtc[] = \"/dev/rtc0\";\n"
- "\n"
- "\n"
- "int main(int argc, char **argv)\n"
- "{\n"
- "\tint i, fd, retval, irqcount = 0;\n"
- "\tunsigned long tmp, data;\n"
- "\tstruct rtc_time rtc_tm;\n"
- "\tconst char *rtc = default_rtc;\n"
- "\n"
- "\tswitch (argc) {\n"
- "\tcase 2:\n"
- "\t\trtc = argv[1];\n"
- "\t\t/* FALLTHROUGH */\n"
- "\tcase 1:\n"
- "\t\tbreak;\n"
- "\tdefault:\n"
- "\t\tfprintf(stderr, \"usage:  rtctest [rtcdev]\\n\");\n"
- "\t\treturn 1;\n"
- "\t}\n"
- "\n"
- "\tfd = open(rtc, O_RDONLY);\n"
- "\n"
- "\tif (fd ==  -1) {\n"
- "\t\tperror(rtc);\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"\\n\\t\\t\\tRTC Driver Test Example.\\n\\n\");\n"
- "\n"
- "\t/* Turn on update interrupts (one per second) */\n"
- "\tretval = ioctl(fd, RTC_UIE_ON, 0);\n"
- "\tif (retval == -1) {\n"
- "\t\tif (errno == ENOTTY) {\n"
- "\t\t\tfprintf(stderr,\n"
- "\t\t\t\t\"\\n...Update IRQs not supported.\\n\");\n"
- "\t\t\tgoto test_READ;\n"
- "\t\t}\n"
- "\t\tperror(\"RTC_UIE_ON ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"Counting 5 update (1/sec) interrupts from reading %s:\",\n"
- "\t\t\trtc);\n"
- "\tfflush(stderr);\n"
- "\tfor (i=1; i<6; i++) {\n"
- "\t\t/* This read will block */\n"
- "\t\tretval = read(fd, &data, sizeof(unsigned long));\n"
- "\t\tif (retval == -1) {\n"
- "\t\t\tperror(\"read\");\n"
- "\t\t\texit(errno);\n"
- "\t\t}\n"
- "\t\tfprintf(stderr, \" %d\",i);\n"
- "\t\tfflush(stderr);\n"
- "\t\tirqcount++;\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"\\nAgain, from using select(2) on /dev/rtc:\");\n"
- "\tfflush(stderr);\n"
- "\tfor (i=1; i<6; i++) {\n"
- "\t\tstruct timeval tv = {5, 0};     /* 5 second timeout on select */\n"
- "\t\tfd_set readfds;\n"
- "\n"
- "\t\tFD_ZERO(&readfds);\n"
- "\t\tFD_SET(fd, &readfds);\n"
- "\t\t/* The select will wait until an RTC interrupt happens. */\n"
- "\t\tretval = select(fd+1, &readfds, NULL, NULL, &tv);\n"
- "\t\tif (retval == -1) {\n"
- "\t\t        perror(\"select\");\n"
- "\t\t        exit(errno);\n"
- "\t\t}\n"
- "\t\t/* This read won't block unlike the select-less case above. */\n"
- "\t\tretval = read(fd, &data, sizeof(unsigned long));\n"
- "\t\tif (retval == -1) {\n"
- "\t\t        perror(\"read\");\n"
- "\t\t        exit(errno);\n"
- "\t\t}\n"
- "\t\tfprintf(stderr, \" %d\",i);\n"
- "\t\tfflush(stderr);\n"
- "\t\tirqcount++;\n"
- "\t}\n"
- "\n"
- "\t/* Turn off update interrupts */\n"
- "\tretval = ioctl(fd, RTC_UIE_OFF, 0);\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"RTC_UIE_OFF ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "test_READ:\n"
- "\t/* Read the RTC time/date */\n"
- "\tretval = ioctl(fd, RTC_RD_TIME, &rtc_tm);\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"RTC_RD_TIME ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"\\n\\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\\n\",\n"
- "\t\trtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900,\n"
- "\t\trtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);\n"
- "\n"
- "\t/* Set the alarm to 5 sec in the future, and check for rollover */\n"
- "\trtc_tm.tm_sec += 5;\n"
- "\tif (rtc_tm.tm_sec >= 60) {\n"
- "\t\trtc_tm.tm_sec %= 60;\n"
- "\t\trtc_tm.tm_min++;\n"
- "\t}\n"
- "\tif (rtc_tm.tm_min == 60) {\n"
- "\t\trtc_tm.tm_min = 0;\n"
- "\t\trtc_tm.tm_hour++;\n"
- "\t}\n"
- "\tif (rtc_tm.tm_hour == 24)\n"
- "\t\trtc_tm.tm_hour = 0;\n"
- "\n"
- "\tretval = ioctl(fd, RTC_ALM_SET, &rtc_tm);\n"
- "\tif (retval == -1) {\n"
- "\t\tif (errno == ENOTTY) {\n"
- "\t\t\tfprintf(stderr,\n"
- "\t\t\t\t\"\\n...Alarm IRQs not supported.\\n\");\n"
- "\t\t\tgoto test_PIE;\n"
- "\t\t}\n"
- "\t\tperror(\"RTC_ALM_SET ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\t/* Read the current alarm settings */\n"
- "\tretval = ioctl(fd, RTC_ALM_READ, &rtc_tm);\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"RTC_ALM_READ ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"Alarm time now set to %02d:%02d:%02d.\\n\",\n"
- "\t\trtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);\n"
- "\n"
- "\t/* Enable alarm interrupts */\n"
- "\tretval = ioctl(fd, RTC_AIE_ON, 0);\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"RTC_AIE_ON ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "\tfprintf(stderr, \"Waiting 5 seconds for alarm...\");\n"
- "\tfflush(stderr);\n"
- "\t/* This blocks until the alarm ring causes an interrupt */\n"
- "\tretval = read(fd, &data, sizeof(unsigned long));\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"read\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\tirqcount++;\n"
- "\tfprintf(stderr, \" okay. Alarm rang.\\n\");\n"
- "\n"
- "\t/* Disable alarm interrupts */\n"
- "\tretval = ioctl(fd, RTC_AIE_OFF, 0);\n"
- "\tif (retval == -1) {\n"
- "\t\tperror(\"RTC_AIE_OFF ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\n"
- "test_PIE:\n"
- "\t/* Read periodic IRQ rate */\n"
- "\tretval = ioctl(fd, RTC_IRQP_READ, &tmp);\n"
- "\tif (retval == -1) {\n"
- "\t\t/* not all RTCs support periodic IRQs */\n"
- "\t\tif (errno == ENOTTY) {\n"
- "\t\t\tfprintf(stderr, \"\\nNo periodic IRQ support\\n\");\n"
- "\t\t\tgoto done;\n"
- "\t\t}\n"
- "\t\tperror(\"RTC_IRQP_READ ioctl\");\n"
- "\t\texit(errno);\n"
- "\t}\n"
- "\tfprintf(stderr, \"\\nPeriodic IRQ rate is %ldHz.\\n\", tmp);\n"
- "\n"
- "\tfprintf(stderr, \"Counting 20 interrupts at:\");\n"
- "\tfflush(stderr);\n"
- "\n"
- "\t/* The frequencies 128Hz, 256Hz, ... 8192Hz are only allowed for root. */\n"
- "\tfor (tmp=2; tmp<=64; tmp*=2) {\n"
- "\n"
- "\t\tretval = ioctl(fd, RTC_IRQP_SET, tmp);\n"
- "\t\tif (retval == -1) {\n"
- "\t\t\t/* not all RTCs can change their periodic IRQ rate */\n"
- "\t\t\tif (errno == ENOTTY) {\n"
- "\t\t\t\tfprintf(stderr,\n"
- "\t\t\t\t\t\"\\n...Periodic IRQ rate is fixed\\n\");\n"
- "\t\t\t\tgoto done;\n"
- "\t\t\t}\n"
- "\t\t\tperror(\"RTC_IRQP_SET ioctl\");\n"
- "\t\t\texit(errno);\n"
- "\t\t}\n"
- "\n"
- "\t\tfprintf(stderr, \"\\n%ldHz:\\t\", tmp);\n"
- "\t\tfflush(stderr);\n"
- "\n"
- "\t\t/* Enable periodic interrupts */\n"
- "\t\tretval = ioctl(fd, RTC_PIE_ON, 0);\n"
- "\t\tif (retval == -1) {\n"
- "\t\t\tperror(\"RTC_PIE_ON ioctl\");\n"
- "\t\t\texit(errno);\n"
- "\t\t}\n"
- "\n"
- "\t\tfor (i=1; i<21; i++) {\n"
- "\t\t\t/* This blocks */\n"
- "\t\t\tretval = read(fd, &data, sizeof(unsigned long));\n"
- "\t\t\tif (retval == -1) {\n"
- "\t\t\t\tperror(\"read\");\n"
- "\t\t\t\texit(errno);\n"
- "\t\t\t}\n"
- "\t\t\tfprintf(stderr, \" %d\",i);\n"
- "\t\t\tfflush(stderr);\n"
- "\t\t\tirqcount++;\n"
- "\t\t}\n"
- "\n"
- "\t\t/* Disable periodic interrupts */\n"
- "\t\tretval = ioctl(fd, RTC_PIE_OFF, 0);\n"
- "\t\tif (retval == -1) {\n"
- "\t\t\tperror(\"RTC_PIE_OFF ioctl\");\n"
- "\t\t\texit(errno);\n"
- "\t\t}\n"
- "\t}\n"
- "\n"
- "done:\n"
- "\tfprintf(stderr, \"\\n\\n\\t\\t\\t *** Test complete ***\\n\");\n"
- "\n"
- "\tclose(fd);\n"
- "\n"
- "\treturn 0;\n"
- }
- "\01:2\0"
- "fn\0signature.asc\0"
- "d\0Digital signature\0"
- "b\0"
- "-----BEGIN PGP SIGNATURE-----\n"
- "Version: GnuPG v1.4.12 (GNU/Linux)\n"
- "\n"
- "iQIcBAEBAgAGBQJQhVMCAAoJEIaOsuA1yqREDeIP/iqMW3LwcpogT0j7ZTvh+Urn\n"
- "iqhsbD390R/5lRprXtYOpiZJB7NlvyXWVPdNMIY7qW2ch3EQVixM9HgmuvodakUs\n"
- "ZhtKW+lgGDywigoqVWMsDHsnVZap8mtlq1hD9c4mdK0/LWcgn1PvRIF0gZOz9fgq\n"
- "ZdS2/MmNMRwFKz9wtGXc5znqNCfVnUPGNHN4kN37pdMliooObBOEbRYitylXyY6d\n"
- "LCkZS97cYrbWCVMwF2XUsV1q6fLsbHz4u3XMzc2dZHvxslWvV8mTaREndWh5YowG\n"
- "fL6t4jiBW5/It2jZeHR5JNR0MTmkrF//QlQD1o5vQyJQw+8xMLH55sxn3WwNji3H\n"
- "w/DA1VVE8m3l68YPrK61M2nkp+XaFaECxyUt+3jSS/4RkMx2/tirCIoNosqnsdpg\n"
- "9Stqt2if1qe1nq5Q0qGzedpoM9VSImW4Kh++Pid+NFTh00/xIPc5ZRRWJHjAXyqD\n"
- "MykDIUxcf9hBboGd5no5MvyeUFvpdeeWo44uZpuzJvtSb5ZOJWAErZp+OZZi8BR4\n"
- "Kh49AQgpCHBPIZrcaTO9GHtBQCUyXUYiaYUcinoGbGqa7dj4zAaMQbDMShsAb9CF\n"
- "8we5ajFDXhDjimFp3jX1ET5c6h3H1hNOvqxizGbYXA4cgy7rXIwaxkIeLdb2JATq\n"
- "hoNsTcgUDPx0K7a3T6gY\n"
- "=St6a\n"
- "-----END PGP SIGNATURE-----\n"
+ "balbi\n"
+ "-------------- next part --------------\n"
+ "A non-text attachment was scrubbed...\n"
+ "Name: rtctest.c\n"
+ "Type: text/x-csrc\n"
+ "Size: 5768 bytes\n"
+ "Desc: not available\n"
+ "URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121022/d3212336/attachment-0001.bin>\n"
+ "-------------- next part --------------\n"
+ "A non-text attachment was scrubbed...\n"
+ "Name: signature.asc\n"
+ "Type: application/pgp-signature\n"
+ "Size: 836 bytes\n"
+ "Desc: Digital signature\n"
+ URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121022/d3212336/attachment-0001.sig>
 
-1a24cd83d263a8b6d949094304a234a18f958444abf3a8559b0d7ae96f93c057
+22d10d796c696dc75e5003bc96c802a87ba8b485d1516edca8f5cdeef5edbd1f

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.