--- linux-ia64-2.4/arch/ia64/kernel/perfmon.c.old 2003-09-10 11:36:15.000000000 -0700 +++ linux-ia64-2.4/arch/ia64/kernel/perfmon.c 2003-09-10 11:37:01.000000000 -0700 @@ -4013,6 +4013,10 @@ if (CTX_INHERIT_MODE(ctx) == PFM_FL_INHERIT_ONCE) { nctx->ctx_fl_inherit = PFM_FL_INHERIT_NONE; DBprintk(("downgrading to INHERIT_NONE for [%d]\n", task->pid)); + /* + * downgrade parent: once means only first child! + */ + ctx->ctx_fl_inherit = PFM_FL_INHERIT_NONE; } /* * task is not yet visible in the tasklist, so we do