diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 60b9b80e..127cb85c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -522,6 +522,11 @@ static inline struct gk20a *gk20a_from_as(struct gk20a_as *as) | |||
522 | { | 522 | { |
523 | return container_of(as, struct gk20a, as); | 523 | return container_of(as, struct gk20a, as); |
524 | } | 524 | } |
525 | static inline struct gk20a *gk20a_from_pmu(struct pmu_gk20a *pmu) | ||
526 | { | ||
527 | return container_of(pmu, struct gk20a, pmu); | ||
528 | } | ||
529 | |||
525 | static inline u32 u64_hi32(u64 n) | 530 | static inline u32 u64_hi32(u64 n) |
526 | { | 531 | { |
527 | return (u32)((n >> 32) & ~(u32)0); | 532 | return (u32)((n >> 32) & ~(u32)0); |