Skip to content

Commit

Permalink
drm/amdkcl: Add XEC macro
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Russell <kent.russell@amd.com>
Change-Id: Ie4351cb90a263486c58675f1c816d4bd1fe11d4c
  • Loading branch information
kentrussell committed Aug 12, 2021
1 parent bdaa35d commit 73b3910
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/backport/backport.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@
#include "kcl/kcl_amdgpu.h"
#include "kcl/kcl_amdgpu_drm_drv.h"
#include "kcl/kcl_drm_gem_ttm_helper.h"
#include "kcl/kcl_mce.h"

#endif /* AMDGPU_BACKPORT_H */
11 changes: 11 additions & 0 deletions include/kcl/kcl_mce.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef AMDKCL_MCE_H
#define AMDKCL_MCE_H

#include <asm/mce.h>
/* Copied from asm/mce.h */
#ifndef XEC
#define XEC(x, mask) (((x) >> 16) & mask)
#endif

#endif

0 comments on commit 73b3910

Please sign in to comment.