diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-04-26 10:11:35 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-02 10:36:03 -0400 |
commit | b837ba0ad95bb5c08626a49321f07f271bdaf512 (patch) | |
tree | 1cdd24b70057070dddecf544f7fc8e0b8494f003 | |
parent | 286dbb8d5d800dcca23d43bb62d9f3cd96fe479c (diff) |
drm/atomic: Rename drm_atomic_async_commit to nonblocking.
Another step in renaming async to nonblocking for atomic commit.
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-3-git-send-email-maarten.lankhorst@linux.intel.com
-rw-r--r-- | drivers/gpu/drm/drm_atomic.c | 12 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 4 | ||||
-rw-r--r-- | include/drm/drm_atomic.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 2fabd8c4fd88..0b526423f19f 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c | |||
@@ -145,7 +145,7 @@ void drm_atomic_state_default_clear(struct drm_atomic_state *state) | |||
145 | continue; | 145 | continue; |
146 | 146 | ||
147 | /* | 147 | /* |
148 | * FIXME: Async commits can race with connector unplugging and | 148 | * FIXME: Nonblocking commits can race with connector unplugging and |
149 | * there's currently nothing that prevents cleanup up state for | 149 | * there's currently nothing that prevents cleanup up state for |
150 | * deleted connectors. As long as the callback doesn't look at | 150 | * deleted connectors. As long as the callback doesn't look at |
151 | * the connector we'll be fine though, so make sure that's the | 151 | * the connector we'll be fine though, so make sure that's the |
@@ -1390,7 +1390,7 @@ int drm_atomic_commit(struct drm_atomic_state *state) | |||
1390 | EXPORT_SYMBOL(drm_atomic_commit); | 1390 | EXPORT_SYMBOL(drm_atomic_commit); |
1391 | 1391 | ||
1392 | /** | 1392 | /** |
1393 | * drm_atomic_async_commit - atomic&async configuration commit | 1393 | * drm_atomic_nonblocking_commit - atomic&nonblocking configuration commit |
1394 | * @state: atomic configuration to check | 1394 | * @state: atomic configuration to check |
1395 | * | 1395 | * |
1396 | * Note that this function can return -EDEADLK if the driver needed to acquire | 1396 | * Note that this function can return -EDEADLK if the driver needed to acquire |
@@ -1405,7 +1405,7 @@ EXPORT_SYMBOL(drm_atomic_commit); | |||
1405 | * Returns: | 1405 | * Returns: |
1406 | * 0 on success, negative error code on failure. | 1406 | * 0 on success, negative error code on failure. |
1407 | */ | 1407 | */ |
1408 | int drm_atomic_async_commit(struct drm_atomic_state *state) | 1408 | int drm_atomic_nonblocking_commit(struct drm_atomic_state *state) |
1409 | { | 1409 | { |
1410 | struct drm_mode_config *config = &state->dev->mode_config; | 1410 | struct drm_mode_config *config = &state->dev->mode_config; |
1411 | int ret; | 1411 | int ret; |
@@ -1414,11 +1414,11 @@ int drm_atomic_async_commit(struct drm_atomic_state *state) | |||
1414 | if (ret) | 1414 | if (ret) |
1415 | return ret; | 1415 | return ret; |
1416 | 1416 | ||
1417 | DRM_DEBUG_ATOMIC("commiting %p asynchronously\n", state); | 1417 | DRM_DEBUG_ATOMIC("commiting %p nonblocking\n", state); |
1418 | 1418 | ||
1419 | return config->funcs->atomic_commit(state->dev, state, true); | 1419 | return config->funcs->atomic_commit(state->dev, state, true); |
1420 | } | 1420 | } |
1421 | EXPORT_SYMBOL(drm_atomic_async_commit); | 1421 | EXPORT_SYMBOL(drm_atomic_nonblocking_commit); |
1422 | 1422 | ||
1423 | /* | 1423 | /* |
1424 | * The big monstor ioctl | 1424 | * The big monstor ioctl |
@@ -1687,7 +1687,7 @@ retry: | |||
1687 | */ | 1687 | */ |
1688 | ret = drm_atomic_check_only(state); | 1688 | ret = drm_atomic_check_only(state); |
1689 | } else if (arg->flags & DRM_MODE_ATOMIC_NONBLOCK) { | 1689 | } else if (arg->flags & DRM_MODE_ATOMIC_NONBLOCK) { |
1690 | ret = drm_atomic_async_commit(state); | 1690 | ret = drm_atomic_nonblocking_commit(state); |
1691 | } else { | 1691 | } else { |
1692 | ret = drm_atomic_commit(state); | 1692 | ret = drm_atomic_commit(state); |
1693 | } | 1693 | } |
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 297713bab549..b04662e0e608 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c | |||
@@ -2371,11 +2371,11 @@ retry: | |||
2371 | goto fail; | 2371 | goto fail; |
2372 | } | 2372 | } |
2373 | 2373 | ||
2374 | ret = drm_atomic_async_commit(state); | 2374 | ret = drm_atomic_nonblocking_commit(state); |
2375 | if (ret != 0) | 2375 | if (ret != 0) |
2376 | goto fail; | 2376 | goto fail; |
2377 | 2377 | ||
2378 | /* Driver takes ownership of state on successful async commit. */ | 2378 | /* Driver takes ownership of state on successful commit. */ |
2379 | return 0; | 2379 | return 0; |
2380 | fail: | 2380 | fail: |
2381 | if (ret == -EDEADLK) | 2381 | if (ret == -EDEADLK) |
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d3eaa5df187a..92c84e9ab09a 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h | |||
@@ -137,7 +137,7 @@ drm_atomic_clean_old_fb(struct drm_device *dev, unsigned plane_mask, int ret); | |||
137 | 137 | ||
138 | int __must_check drm_atomic_check_only(struct drm_atomic_state *state); | 138 | int __must_check drm_atomic_check_only(struct drm_atomic_state *state); |
139 | int __must_check drm_atomic_commit(struct drm_atomic_state *state); | 139 | int __must_check drm_atomic_commit(struct drm_atomic_state *state); |
140 | int __must_check drm_atomic_async_commit(struct drm_atomic_state *state); | 140 | int __must_check drm_atomic_nonblocking_commit(struct drm_atomic_state *state); |
141 | 141 | ||
142 | #define for_each_connector_in_state(state, connector, connector_state, __i) \ | 142 | #define for_each_connector_in_state(state, connector, connector_state, __i) \ |
143 | for ((__i) = 0; \ | 143 | for ((__i) = 0; \ |