Merge "Remove unused func for CONFIG_REALTIME_ONLY"