| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Virtual PTP 1588 clock for use with KVM guests |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2017 Red Hat Inc. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | 6 | */ |
|---|
| 17 | 7 | #include <linux/device.h> |
|---|
| 18 | 8 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 32 | 22 | struct ptp_clock_info caps; |
|---|
| 33 | 23 | }; |
|---|
| 34 | 24 | |
|---|
| 35 | | -DEFINE_SPINLOCK(kvm_ptp_lock); |
|---|
| 25 | +static DEFINE_SPINLOCK(kvm_ptp_lock); |
|---|
| 36 | 26 | |
|---|
| 37 | 27 | static struct pvclock_vsyscall_time_info *hv_clock; |
|---|
| 38 | 28 | |
|---|