Messages in this thread | | | Date | Sat, 16 Jul 2005 02:32:14 -0600 | From | Frank Sorenson <> | Subject | Re: [RFC][PATCH 1/6] new timeofday core subsystem |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> +extern nsec_t do_monotonic_clock(void); This looks okay ...
> +/** > + * do_monotonic_clock - Returns monotonically increasing nanoseconds > + * > + * Returns the monotonically increasing number of nanoseconds > + * since the system booted via __monotonic_clock() > + */ > +nsec_t do_monotonic_clock(void) > +{ > + nsec_t ret; > + unsigned long seq; > + > + /* atomically read __monotonic_clock() */ > + do { > + seq = read_seqbegin(&system_time_lock); > + > + ret = __monotonic_clock(); > + > + } while (read_seqretry(&system_time_lock, seq)); > + > + return ret; > +}
... but this conflicts with Nish's softtimer patches, which is implemented slightly differently. For those of us who are real gluttons for punishment, and want both sets of patches, are there problems just removing one of the do_monotonic_clock definitions?
Thanks,
Frank - -- Frank Sorenson - KD7TZK Systems Manager, Computer Science Department Brigham Young University frank@tuxrocks.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC2MYNaI0dwg4A47wRAiQoAJ9vUvpjE7KmhCNW7NJ6kfd0SuyvXwCg+NtN pXqoz0v5Tbf5OMFjhYSzPp0= =LT9E -----END PGP SIGNATURE----- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |