mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	x86: Use clflushopt in drm_clflush_virt_range
If clflushopt is available on the system, use it instead of clflush in drm_clflush_virt_range. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Link: http://lkml.kernel.org/r/1393441612-19729-5-git-send-email-ross.zwisler@linux.intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
		
							parent
							
								
									2a0c772f19
								
							
						
					
					
						commit
						2a0788dc9b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -139,7 +139,7 @@ drm_clflush_virt_range(char *addr, unsigned long length)
 | 
				
			||||||
		mb();
 | 
							mb();
 | 
				
			||||||
		for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
 | 
							for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
 | 
				
			||||||
			clflush(addr);
 | 
								clflush(addr);
 | 
				
			||||||
		clflush(end - 1);
 | 
							clflushopt(end - 1);
 | 
				
			||||||
		mb();
 | 
							mb();
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue