| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * The industrial I/O periodic hrtimer trigger driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) Intuitive Aerial AB |
|---|
| 5 | 6 | * Written by Marten Svanfeldt, marten@intuitiveaerial.com |
|---|
| 6 | | - * Copyright (C) 2012, Analog Device Inc. |
|---|
| 7 | + * Copyright (C) 2012, Analog Devices Inc. |
|---|
| 7 | 8 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
|---|
| 8 | 9 | * Copyright (C) 2015, Intel Corporation |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 11 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 12 | | - * the Free Software Foundation. |
|---|
| 13 | | - * |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | #include <linux/kernel.h> |
|---|
| 16 | 12 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 106 | 102 | |
|---|
| 107 | 103 | if (state) |
|---|
| 108 | 104 | hrtimer_start(&trig_info->timer, trig_info->period, |
|---|
| 109 | | - HRTIMER_MODE_REL); |
|---|
| 105 | + HRTIMER_MODE_REL_HARD); |
|---|
| 110 | 106 | else |
|---|
| 111 | 107 | hrtimer_cancel(&trig_info->timer); |
|---|
| 112 | 108 | |
|---|
| .. | .. |
|---|
| 136 | 132 | trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; |
|---|
| 137 | 133 | trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; |
|---|
| 138 | 134 | |
|---|
| 139 | | - hrtimer_init(&trig_info->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
|---|
| 135 | + hrtimer_init(&trig_info->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); |
|---|
| 140 | 136 | trig_info->timer.function = iio_hrtimer_trig_handler; |
|---|
| 141 | 137 | |
|---|
| 142 | 138 | trig_info->sampling_frequency = HRTIMER_DEFAULT_SAMPLING_FREQUENCY; |
|---|