mac80211_hwsim: use CLOCK_MONOTONIC_RAW
The beacon timers really shouldn't use any clock that is subject to adjustments from userspace, particularly not CLOCK_REALTIME. Use CLOCK_MONOTONIC_RAW instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
		
					parent
					
						
							
								01e0daa43f
							
						
					
				
			
			
				commit
				
					
						1d940aaab8
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2580,7 +2580,7 @@ static int __init init_mac80211_hwsim(void) | ||||||
| 
 | 
 | ||||||
| 		tasklet_hrtimer_init(&data->beacon_timer, | 		tasklet_hrtimer_init(&data->beacon_timer, | ||||||
| 				     mac80211_hwsim_beacon, | 				     mac80211_hwsim_beacon, | ||||||
| 				     CLOCK_REALTIME, HRTIMER_MODE_ABS); | 				     CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS); | ||||||
| 
 | 
 | ||||||
| 		list_add_tail(&data->list, &hwsim_radios); | 		list_add_tail(&data->list, &hwsim_radios); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Johannes Berg
				Johannes Berg