Rusty Russell wrote:
Yes, but jiffies is the lowest-rated clock (so PIT will get chosen). I initially mugged clocksource_jiffies.rating, but that felt wrong: it's currently not registered when this code runs so it's a simple assignment, but if code order was to change it would have to be a call to clocksource_change_rating(). There's an internal clocksource_override which I could use, but I'd have to make it non-static. Maybe John has thoughts?
How about having lguest_tsc and lguest_jiffies clocksources, with the approprate ratings to get them selected when needed? And lguest_jiffies could probably just be a new structure which points to the normal jiffies clocksource function(s).
J _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization