On 05/08/07 10:38, Thomas De Schampheleire wrote:
But see cmi_load_module(), where we load up per-vendor CPU modules,
and the existing files under /platform/i86pc/kernel/cpu/.
I should mention that I am using UltraSPARC, and there doesn't seem to be
such cmi_* functions there. Are there other equivalents? The ones in x86 do
seem interesting, but I wonder whether a CPU can have two cmi modules
connected to it? I only want to implement its power management, not the
rest
of the handling.
Yes, the cmi_* interface is for x86 only - see
usr/src/uts/i86pc/sys/cpu_module.h
There is a cpu module mechanism for sparc, too. It is less clean - lots more
history to it. See:
uts/sun4/cpu/cpu_module.c
uts/sun4u/sys/cpu_module.h
uts/sun4u/cpu/mach_cpu_module.c
uts/sun4v/cpu/mach_cpu_module.c
uts/sun4u/cpu/*
uts/sun4v/cpu/*
Some models do have power management features - certainly US-IIIi does. No
idea where that support is implemented.
Gavin
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code