Ville Syrjälä  
		
	
	
		983dfe5b68 
		
	 
	
	
	tests/pm_rc6_residency: Measure the sleep duration  
		
			... 
			The code is confused about the units of CODE_TIME. The comment
says 50 microsseconds, but the actual code makes it 50
milliseconds. Avoid the whole mess by measuring the sleep
duration ourselves. Since the time measurement is taken around
the whole operation it obviously includes a bit of extra, but
at least it's much less than the fixed 50 ms.
For instance on one VLV board I now get something like this:
- Residency in rc6 or deeper state: 3002 ms (ratio to expected duration: 0.98)
+ Residency in rc6 or deeper state: 3001 ms (sleep duration 3003 ms) (ratio to expected duration: 1.00)
so the reported ratio is now much closer to reality.
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> 
		
	 
 
		2015-09-28 18:23:52 +03:00 
	 
	
	
		  ..
	 
	
	
		
			
			
			
			
			
			2015-09-08 16:15:16 +01:00 
		 
	
		
			
			
			
			
			
			2014-12-10 17:11:35 +00:00 
		 
	
		
			
			
			
			
			
			2014-12-10 17:11:35 +00:00 
		 
	
		
			
			
			
			
			
			2015-08-13 11:28:22 +01:00 
		 
	
		
			
			
			
			
			
			2012-04-10 16:23:18 +02:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2013-08-21 23:18:00 +02:00 
		 
	
		
			
			
			
			
			
			2013-07-01 18:54:40 +02:00 
		 
	
		
			
			
			
			
			
			2013-07-01 18:54:40 +02:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2014-11-06 13:24:30 +00:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2013-11-04 19:49:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2014-09-06 17:26:21 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-14 09:26:12 -07:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-04-02 16:35:42 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-18 17:31:36 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-24 14:24:18 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-24 11:04:34 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-24 14:24:18 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2013-11-04 19:49:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-28 18:23:52 +03:00 
		 
	
		
			
			
			
			
			
			2015-09-08 16:15:16 +01:00 
		 
	
		
			
			
			
			
			
			2012-08-08 08:51:55 +02:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-28 18:23:52 +03:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2014-09-30 17:54:02 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-11 14:39:43 +01:00 
		 
	
		
			
			
			
			
			
			2014-07-23 21:03:07 +02:00 
		 
	
		
			
			
			
			
			
			2015-08-21 09:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-09-25 11:42:14 +01:00 
		 
	
		
			
			
			
			
			
			2012-01-24 10:50:10 +01:00 
		 
	
		
			
			
			
			
			
			2015-04-20 12:11:49 +01:00 
		 
	
		
			
			
			
			
			
			2012-01-15 16:05:43 +01:00