diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-23 17:02:57 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-23 17:10:56 -0500 |
commit | 5d5b7d4f80ed6e861c1c220fd57e3dad0912526e (patch) | |
tree | 40c015040a63379d114b8f33b4d70e248867a9a4 /drivers/base | |
parent | a3c3774176838bbfa4f6e48133644903818e56dc (diff) |
regmap: Add tracepoints for cache only and cache bypass
Useful for figuring out where the hardware interaction went or came from.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 69d4c9c5a4a8..2d89ce08f137 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -313,6 +313,7 @@ void regcache_cache_only(struct regmap *map, bool enable) | |||
313 | mutex_lock(&map->lock); | 313 | mutex_lock(&map->lock); |
314 | WARN_ON(map->cache_bypass && enable); | 314 | WARN_ON(map->cache_bypass && enable); |
315 | map->cache_only = enable; | 315 | map->cache_only = enable; |
316 | trace_regmap_cache_only(map->dev, enable); | ||
316 | mutex_unlock(&map->lock); | 317 | mutex_unlock(&map->lock); |
317 | } | 318 | } |
318 | EXPORT_SYMBOL_GPL(regcache_cache_only); | 319 | EXPORT_SYMBOL_GPL(regcache_cache_only); |
@@ -350,6 +351,7 @@ void regcache_cache_bypass(struct regmap *map, bool enable) | |||
350 | mutex_lock(&map->lock); | 351 | mutex_lock(&map->lock); |
351 | WARN_ON(map->cache_only && enable); | 352 | WARN_ON(map->cache_only && enable); |
352 | map->cache_bypass = enable; | 353 | map->cache_bypass = enable; |
354 | trace_regmap_cache_bypass(map->dev, enable); | ||
353 | mutex_unlock(&map->lock); | 355 | mutex_unlock(&map->lock); |
354 | } | 356 | } |
355 | EXPORT_SYMBOL_GPL(regcache_cache_bypass); | 357 | EXPORT_SYMBOL_GPL(regcache_cache_bypass); |