Hi, > > The first thing to consider is that right now we only have 2 states > > for CPUs: started and stopped. These states are controlled by > > started_cpus and stopped_cpus masks respectively. It seems you really > > want to add an intermediate level among the 2 where you have: started > > -> suspended -> started -> suspended ... -> stopped and you need to > > expand the mechanism for dealing with started and stopped cpus to do > > that. I'm pretty sure this will be very helpful also for other > > architectures that want to do the same. > > You are right, I'll add new global cpuset suspended_cpus and replace > PCB_SUSPENDING with it.
Also I noticed that CR3 can be restored in resumectx() and remove load_cr3() from C code. Revised patches: http://people.freebsd.org/~iwasaki/acpi/x86-acpi_wakeup-20120603.diff Thanks _______________________________________________ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"