lkml.org 
[lkml]   [2010]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 1/4] perf: core, add group scheduling transactional APIs
From
Date
On Thu, 2010-04-22 at 15:51 +0800, Lin Ming wrote:
> + if (pmu->commit_txn) {
> + ret = pmu->commit_txn(pmu);
> + if (!ret) {
> + if (pmu->stop_txn)
> + pmu->stop_txn(pmu);
> +
> + return 0;
> + }
> + }

I think we can mandate that if one of the _txn methods is available,
they all are, it would be weird otherwise.



\
 
 \ /
  Last update: 2010-04-22 11:15    [W:0.057 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site