From: Peter Zijlstra on 21 May 2010 10:30 These patches introduce local64_t. Since perf_event:count is only modified cross-cpu when child-counters feed back their changes on exit, and we can use a secondary variable for that, we can convert perf to use local64_t instead of atomic64_t and use instructions without buslock semantics. The local64_t implementation uses local_t for 64 bits, since local_t is of type long, for 32 bit it falls back to atomic64_t. Architectures can provide their own implementation as usual. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [PATCH 2/4] perf: Add perf_event_count() Next: [GIT PULL] nilfs2 updates for 2.6.35 |