Re: [PATCH 10/24] C6X: time management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-08-09 at 18:35 +0200, Arnd Bergmann wrote:
> > +static cycle_t tsc_read(struct clocksource *cs)
> > +{
> > +     return get_cycles();
> > +}
> 
> What is this good for? TSC is an x86 specific feature, so you should
> just
> be able to use get_cycles directly.
> 

TSC (Time Stamp Counter) is how the C6X hardware manuals refer to the
free running 64-bit core clock counter. The tsc_read function is needed
to provide a function with the correct prototype for struct clocksource
read method.

--Mark


--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux