2021-05-27 19:44:47 +02:00
|
|
|
/*
|
2023-02-01 17:26:39 +00:00
|
|
|
* Copyright (C) 2021-2023 Intel Corporation
|
2021-05-27 19:44:47 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/os_interface/linux/device_time_drm.h"
|
|
|
|
|
#include "shared/source/os_interface/linux/os_time_linux.h"
|
|
|
|
|
#include "shared/source/os_interface/os_time.h"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<OSTime> OSTime::create(OSInterface *osInterface) {
|
2023-02-01 17:26:39 +00:00
|
|
|
if (osInterface) {
|
|
|
|
|
return OSTimeLinux::create(osInterface, std::make_unique<DeviceTimeDrm>(osInterface));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return std::make_unique<OSTime>(std::make_unique<DeviceTime>());
|
2021-05-27 19:44:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace NEO
|