Nope, I propose to do something likeSorry, i could not understand your point. The changes are platformget_wallclock() and set_wallclock() are function pointers of platform_opsShouldn't it be platform agnostic code?
which are initialized to mach_get_cmos_time() and mach_set_rtc_mmss()
at init time. Since adding a new platform to override these functions is
discouraged, so the only way is to modify RTC get/set functions.
So, my point is, instead of hacking two functions, perhaps better to avoid them
agnostic i.e. it doesn't break existing use cases. Are you recommending
to add a new platform and make changes there ?
void __init foo()
if (platform has RTC)
set_wallclock = noop;
get_wallclock = noop;