| .. | .. |
|---|
| 1 | | -/*********************************************************************** |
|---|
| 2 | | -* linux/kernel/time/jiffies.c |
|---|
| 3 | | -* |
|---|
| 4 | | -* This file contains the jiffies based clocksource. |
|---|
| 5 | | -* |
|---|
| 6 | | -* Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) |
|---|
| 7 | | -* |
|---|
| 8 | | -* This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | -* it under the terms of the GNU General Public License as published by |
|---|
| 10 | | -* the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | -* (at your option) any later version. |
|---|
| 12 | | -* |
|---|
| 13 | | -* This program is distributed in the hope that it will be useful, |
|---|
| 14 | | -* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | -* GNU General Public License for more details. |
|---|
| 17 | | -* |
|---|
| 18 | | -* You should have received a copy of the GNU General Public License |
|---|
| 19 | | -* along with this program; if not, write to the Free Software |
|---|
| 20 | | -* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 21 | | -* |
|---|
| 22 | | -************************************************************************/ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 2 | +/* |
|---|
| 3 | + * This file contains the jiffies based clocksource. |
|---|
| 4 | + * |
|---|
| 5 | + * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) |
|---|
| 6 | + */ |
|---|
| 23 | 7 | #include <linux/clocksource.h> |
|---|
| 24 | 8 | #include <linux/jiffies.h> |
|---|
| 25 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 80 | 64 | #if (BITS_PER_LONG < 64) |
|---|
| 81 | 65 | u64 get_jiffies_64(void) |
|---|
| 82 | 66 | { |
|---|
| 83 | | - unsigned long seq; |
|---|
| 67 | + unsigned int seq; |
|---|
| 84 | 68 | u64 ret; |
|---|
| 85 | 69 | |
|---|
| 86 | 70 | do { |
|---|
| .. | .. |
|---|
| 106 | 90 | return &clocksource_jiffies; |
|---|
| 107 | 91 | } |
|---|
| 108 | 92 | |
|---|
| 109 | | -struct clocksource refined_jiffies; |
|---|
| 93 | +static struct clocksource refined_jiffies; |
|---|
| 110 | 94 | |
|---|
| 111 | 95 | int register_refined_jiffies(long cycles_per_second) |
|---|
| 112 | 96 | { |
|---|