diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2017-08-25 15:47:22 +0300 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2017-08-25 18:48:00 +0300 |
commit | 29e15e83a99cdc13d0d38de558fbea641f8fdda8 (patch) | |
tree | 8c52cbd116aa1e55bc2080a46542b43f0d382429 /drivers/hwtracing/intel_th/intel_th.h | |
parent | 3321371b5d648479058fa6f9441168abbc1467c9 (diff) | |
download | linux-29e15e83a99cdc13d0d38de558fbea641f8fdda8.tar.xz |
intel_th: Add global activate/deactivate callbacks for the glue layers
A glue layer may want to install its own hooks into trace capture start
and stop paths to apply workarounds. This adds optional callbacks.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th/intel_th.h')
-rw-r--r-- | drivers/hwtracing/intel_th/intel_th.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwtracing/intel_th/intel_th.h b/drivers/hwtracing/intel_th/intel_th.h index 68244602ca29..78a4fb28b135 100644 --- a/drivers/hwtracing/intel_th/intel_th.h +++ b/drivers/hwtracing/intel_th/intel_th.h @@ -263,6 +263,8 @@ struct intel_th { struct intel_th_drvdata *drvdata; struct resource *resource; + int (*activate)(struct intel_th *); + void (*deactivate)(struct intel_th *); unsigned int num_thdevs; unsigned int num_resources; int irq; |