mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	drm/msm: Rename async to nonblock.
The async name is deprecated and should be changed to nonblocking. Also comments seem to be a bit outdated, as it looks like nonblocking commit is supported by msm. Cc: Rob Clark <robdclark@gmail.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1461679905-30177-6-git-send-email-maarten.lankhorst@linux.intel.com
This commit is contained in:
		
							parent
							
								
									1b3f09d8ca
								
							
						
					
					
						commit
						a3ccfb9feb
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		|  | @ -190,17 +190,16 @@ int msm_atomic_check(struct drm_device *dev, | ||||||
|  * drm_atomic_helper_commit - commit validated state object |  * drm_atomic_helper_commit - commit validated state object | ||||||
|  * @dev: DRM device |  * @dev: DRM device | ||||||
|  * @state: the driver state object |  * @state: the driver state object | ||||||
|  * @async: asynchronous commit |  * @nonblock: nonblocking commit | ||||||
|  * |  * | ||||||
|  * This function commits a with drm_atomic_helper_check() pre-validated state |  * This function commits a with drm_atomic_helper_check() pre-validated state | ||||||
|  * object. This can still fail when e.g. the framebuffer reservation fails. For |  * object. This can still fail when e.g. the framebuffer reservation fails. | ||||||
|  * now this doesn't implement asynchronous commits. |  | ||||||
|  * |  * | ||||||
|  * RETURNS |  * RETURNS | ||||||
|  * Zero for success or -errno. |  * Zero for success or -errno. | ||||||
|  */ |  */ | ||||||
| int msm_atomic_commit(struct drm_device *dev, | int msm_atomic_commit(struct drm_device *dev, | ||||||
| 		struct drm_atomic_state *state, bool async) | 		struct drm_atomic_state *state, bool nonblock) | ||||||
| { | { | ||||||
| 	int nplanes = dev->mode_config.num_total_plane; | 	int nplanes = dev->mode_config.num_total_plane; | ||||||
| 	int ncrtcs = dev->mode_config.num_crtc; | 	int ncrtcs = dev->mode_config.num_crtc; | ||||||
|  | @ -276,7 +275,7 @@ int msm_atomic_commit(struct drm_device *dev, | ||||||
| 	 * current layout. | 	 * current layout. | ||||||
| 	 */ | 	 */ | ||||||
| 
 | 
 | ||||||
| 	if (async) { | 	if (nonblock) { | ||||||
| 		msm_queue_fence_cb(dev, &c->fence_cb, c->fence); | 		msm_queue_fence_cb(dev, &c->fence_cb, c->fence); | ||||||
| 		return 0; | 		return 0; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -174,7 +174,7 @@ void __msm_fence_worker(struct work_struct *work); | ||||||
| int msm_atomic_check(struct drm_device *dev, | int msm_atomic_check(struct drm_device *dev, | ||||||
| 		     struct drm_atomic_state *state); | 		     struct drm_atomic_state *state); | ||||||
| int msm_atomic_commit(struct drm_device *dev, | int msm_atomic_commit(struct drm_device *dev, | ||||||
| 		struct drm_atomic_state *state, bool async); | 		struct drm_atomic_state *state, bool nonblock); | ||||||
| 
 | 
 | ||||||
| int msm_register_mmu(struct drm_device *dev, struct msm_mmu *mmu); | int msm_register_mmu(struct drm_device *dev, struct msm_mmu *mmu); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Maarten Lankhorst
						Maarten Lankhorst