drm: Add a linux/time.h implementation

Move some code already present elsewhere to the new file.