developer | 02e6591 | 2023-08-17 16:33:10 +0800 | [diff] [blame] | 1 | /* adapter_sleep.c |
| 2 | * |
| 3 | * Linux kernel specific Adapter module |
| 4 | * responsible for adapter-wide time management. |
| 5 | */ |
| 6 | |
| 7 | /***************************************************************************** |
| 8 | * Copyright (c) 2008-2020 by Rambus, Inc. and/or its subsidiaries. |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 2 of the License, or |
| 13 | * any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | *****************************************************************************/ |
| 23 | |
| 24 | // Adapter Sleep API |
| 25 | #include "adapter_sleep.h" |
| 26 | |
| 27 | // Driver Framework Basic Defs API |
| 28 | #include "basic_defs.h" |
| 29 | |
| 30 | // Linux Kernel API |
| 31 | #include <linux/delay.h> // msleep, no-busy-waiting implementation |
| 32 | |
| 33 | |
| 34 | /*---------------------------------------------------------------------------- |
| 35 | * Adapter_SleepMS |
| 36 | */ |
| 37 | void |
| 38 | Adapter_SleepMS( |
| 39 | const unsigned int Duration_ms) |
| 40 | { |
| 41 | msleep(Duration_ms); |
| 42 | } |
| 43 | |
| 44 | |
| 45 | /* end of file adapter_sleep.c */ |