The TSC_enable initialize the 32 bit registers - TSCL & TSCH. They are used 
only on DSP. 

Regards,
Anand

-----Original Message-----
From: Steve Chen [mailto:sc...@mvista.com] 
Sent: Monday, April 20, 2009 5:22 PM
To: Balagopalakrishnan, Anand
Cc: Griffis, Brad; Joshi, Prasad; davinci-linux-open-source@linux.davincidsp.com
Subject: RE: DSP Cycles measurement on DM6467

On Mon, 2009-04-20 at 11:08 +0530, Balagopalakrishnan, Anand wrote:
> Before accessing the TSC registers, you need to enable them by
> calling:
> TSC_enable();

Which timer does TSC_enable initialize?  Would that interfere with ARM
or we don't really care about ARM for this test?


> 
> To get the DSP cycles, the best option is to use TSC_read(). This
> returns a 64 bit unsigned int containing the value of both TSCH and
> TSCL registers.
> 
> Regards,
> Anand
> 



_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to