Lines Matching +full:one +full:- +full:shot
1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de>
7 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar
8 * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner
18 #include "tick-internal.h"
21 * tick_program_event - program the CPU local timer device for the next event
32 dev->next_event = KTIME_MAX; in tick_program_event()
48 * tick_resume_oneshot - resume oneshot mode
59 * tick_setup_oneshot - setup the event device for oneshot mode (hres or nohz)
65 newdev->event_handler = handler; in tick_setup_oneshot()
71 * tick_switch_to_oneshot - switch to oneshot mode
76 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot()
78 if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) || in tick_switch_to_oneshot()
81 pr_info("Clockevents: could not switch to one-shot mode:"); in tick_switch_to_oneshot()
86 pr_cont(" %s is not functional.\n", dev->name); in tick_switch_to_oneshot()
88 pr_cont(" %s does not support one-shot mode.\n", in tick_switch_to_oneshot()
89 dev->name); in tick_switch_to_oneshot()
91 return -EINVAL; in tick_switch_to_oneshot()
94 td->mode = TICKDEV_MODE_ONESHOT; in tick_switch_to_oneshot()
95 dev->event_handler = handler; in tick_switch_to_oneshot()
102 * tick_oneshot_mode_active - check whether the system is in oneshot mode
120 * tick_init_highres - switch to high resolution mode