[PATCH] fix heartbeat

Paul Mackerras paulus at samba.org
Sat Feb 9 17:50:47 EST 2002

Val Henson writes:
> The heartbeat function will not execute properly on Gemini without
> this patch. (Check for cpu 0 removed from gemini_heartbeat.)

CHRP needs the heartbeat function called on all cpus, IIRC.

Clearly the heartbeat_count needs to be per-cpu or else pushed into
the heartbeat function.  How about we make it just

	if (ppc_md.heartbeat)

and let the heartbeat function do the if (!smp_processor_id()) and the
if (!heartbeat_count--) if it wants?


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-dev mailing list