| .. | .. |
|---|
| 32 | 32 | * Gareth Hughes <gareth@valinux.com> |
|---|
| 33 | 33 | */ |
|---|
| 34 | 34 | |
|---|
| 35 | | -#include <drm/drmP.h> |
|---|
| 36 | | -#include <drm/mga_drm.h> |
|---|
| 37 | 35 | #include "mga_drv.h" |
|---|
| 38 | 36 | |
|---|
| 39 | 37 | /* ================================================================ |
|---|
| .. | .. |
|---|
| 1016 | 1014 | return -EINVAL; |
|---|
| 1017 | 1015 | } |
|---|
| 1018 | 1016 | |
|---|
| 1019 | | - DRM_DEBUG("pid=%d\n", DRM_CURRENTPID); |
|---|
| 1017 | + DRM_DEBUG("pid=%d\n", task_pid_nr(current)); |
|---|
| 1020 | 1018 | |
|---|
| 1021 | 1019 | switch (param->param) { |
|---|
| 1022 | 1020 | case MGA_PARAM_IRQ_NR: |
|---|
| .. | .. |
|---|
| 1048 | 1046 | return -EINVAL; |
|---|
| 1049 | 1047 | } |
|---|
| 1050 | 1048 | |
|---|
| 1051 | | - DRM_DEBUG("pid=%d\n", DRM_CURRENTPID); |
|---|
| 1049 | + DRM_DEBUG("pid=%d\n", task_pid_nr(current)); |
|---|
| 1052 | 1050 | |
|---|
| 1053 | 1051 | /* I would normal do this assignment in the declaration of fence, |
|---|
| 1054 | 1052 | * but dev_priv may be NULL. |
|---|
| .. | .. |
|---|
| 1077 | 1075 | return -EINVAL; |
|---|
| 1078 | 1076 | } |
|---|
| 1079 | 1077 | |
|---|
| 1080 | | - DRM_DEBUG("pid=%d\n", DRM_CURRENTPID); |
|---|
| 1078 | + DRM_DEBUG("pid=%d\n", task_pid_nr(current)); |
|---|
| 1081 | 1079 | |
|---|
| 1082 | 1080 | mga_driver_fence_wait(dev, fence); |
|---|
| 1083 | 1081 | return 0; |
|---|