diff options
author | Yong Zhao <Yong.Zhao@amd.com> | 2019-01-16 00:11:32 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-13 21:29:45 +0100 |
commit | 29453755715cbecd1112e0b30260a5eb2e23f51c (patch) | |
tree | 58ec6dd52fd5fb7a8f38127f4b8fd1108f38d633 /drivers/gpu/drm/amd/amdkfd/kfd_events.c | |
parent | drm/amdkfd: Use kernel queue v9 functions for v10 (diff) | |
download | linux-29453755715cbecd1112e0b30260a5eb2e23f51c.tar.xz linux-29453755715cbecd1112e0b30260a5eb2e23f51c.zip |
drm/amdkfd: Simplify the mmap offset related bit operations
The new code uses straightforward bit shifts and thus has better readability.
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_events.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_events.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c index 908081c85de1..1f8365575b12 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c @@ -346,7 +346,6 @@ int kfd_event_create(struct file *devkfd, struct kfd_process *p, ret = create_signal_event(devkfd, p, ev); if (!ret) { *event_page_offset = KFD_MMAP_TYPE_EVENTS; - *event_page_offset <<= PAGE_SHIFT; *event_slot_index = ev->event_id; } break; |