> Why don't you add a "sync" helper function in main.c with the timing > and message that will be called from hibernate.c, user.c and > suspend.c > (in the last one conditional on > !IS_ENABLED(CONFIG_SUSPEND_SKIP_SYNC))? > > That would reduce some code duplication nicely.
I uploaded v5 in reciprocate to your comment, I apologize I sent it second time in order to clean up the header files. -Harry