mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
treewide: Fix wrong singular form of jiffies in comments
There are several comments all over the place, which uses a wrong singular form of jiffies. Replace 'jiffie' by 'jiffy'. No functional change. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k Link: https://lore.kernel.org/all/20240904-devel-anna-maria-b4-timers-flseep-v1-3-e98760256370@linutronix.de
This commit is contained in:
parent
662a1bfb90
commit
bd7c8ff9fe
@ -328,7 +328,7 @@ and an HDMI input, one input for each input type. Those are described in more
|
||||
detail below.
|
||||
|
||||
Special attention has been given to the rate at which new frames become
|
||||
available. The jitter will be around 1 jiffie (that depends on the HZ
|
||||
available. The jitter will be around 1 jiffy (that depends on the HZ
|
||||
configuration of your kernel, so usually 1/100, 1/250 or 1/1000 of a second),
|
||||
but the long-term behavior is exactly following the framerate. So a
|
||||
framerate of 59.94 Hz is really different from 60 Hz. If the framerate
|
||||
|
@ -19,7 +19,7 @@ it really need to delay in atomic context?" If so...
|
||||
|
||||
ATOMIC CONTEXT:
|
||||
You must use the `*delay` family of functions. These
|
||||
functions use the jiffie estimation of clock speed
|
||||
functions use the jiffy estimation of clock speed
|
||||
and will busy wait for enough loop cycles to achieve
|
||||
the desired delay:
|
||||
|
||||
|
@ -109,7 +109,7 @@ para que se ejecute, y la tarea en ejecución es interrumpida.
|
||||
==================================
|
||||
|
||||
CFS usa una granularidad de nanosegundos y no depende de ningún
|
||||
jiffie o detalles como HZ. De este modo, el gestor de tareas CFS no tiene
|
||||
jiffy o detalles como HZ. De este modo, el gestor de tareas CFS no tiene
|
||||
noción de "ventanas de tiempo" de la forma en que tenía el gestor de
|
||||
tareas previo, y tampoco tiene heurísticos. Únicamente hay un parámetro
|
||||
central ajustable (se ha de cambiar en CONFIG_SCHED_DEBUG):
|
||||
|
@ -73,7 +73,7 @@
|
||||
|
||||
/*
|
||||
* Even though the SPC takes max 3-5 ms to complete any OPP/COMMS
|
||||
* operation, the operation could start just before jiffie is about
|
||||
* operation, the operation could start just before jiffy is about
|
||||
* to be incremented. So setting timeout value of 20ms = 2jiffies@100Hz
|
||||
*/
|
||||
#define TIMEOUT_US 20000
|
||||
|
@ -106,7 +106,7 @@ void __init q40_init_IRQ(void)
|
||||
* this stuff doesn't really belong here..
|
||||
*/
|
||||
|
||||
int ql_ticks; /* 200Hz ticks since last jiffie */
|
||||
int ql_ticks; /* 200Hz ticks since last jiffy */
|
||||
static int sound_ticks;
|
||||
|
||||
#define SVOL 45
|
||||
|
@ -314,7 +314,7 @@ static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf,
|
||||
|
||||
/*
|
||||
* Need to give user space some time to set everything up,
|
||||
* so do it a jiffie or two later everywhere.
|
||||
* so do it a jiffy or two later everywhere.
|
||||
*/
|
||||
schedule_timeout(2);
|
||||
|
||||
|
@ -980,7 +980,7 @@ static void msg_written_handler(struct ssif_info *ssif_info, int result,
|
||||
ipmi_ssif_unlock_cond(ssif_info, flags);
|
||||
start_get(ssif_info);
|
||||
} else {
|
||||
/* Wait a jiffie then request the next message */
|
||||
/* Wait a jiffy then request the next message */
|
||||
ssif_info->waiting_alert = true;
|
||||
ssif_info->retries_left = SSIF_RECV_RETRIES;
|
||||
if (!ssif_info->stopping)
|
||||
|
@ -402,7 +402,7 @@ static int test_wait_timeout(void *arg)
|
||||
|
||||
if (dma_fence_wait_timeout(wt.f, false, 2) == -ETIME) {
|
||||
if (timer_pending(&wt.timer)) {
|
||||
pr_notice("Timer did not fire within the jiffie!\n");
|
||||
pr_notice("Timer did not fire within the jiffy!\n");
|
||||
err = 0; /* not our fault! */
|
||||
} else {
|
||||
pr_err("Wait reported incomplete after timeout\n");
|
||||
|
@ -266,7 +266,7 @@ i915_gem_wait_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
|
||||
if (ret == -ETIME && !nsecs_to_jiffies(args->timeout_ns))
|
||||
args->timeout_ns = 0;
|
||||
|
||||
/* Asked to wait beyond the jiffie/scheduler precision? */
|
||||
/* Asked to wait beyond the jiffy/scheduler precision? */
|
||||
if (ret == -ETIME && args->timeout_ns)
|
||||
ret = -EAGAIN;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ static int wait_for_reset(struct intel_engine_cs *engine,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Give the request a jiffie to complete after flushing the worker */
|
||||
/* Give the request a jiffy to complete after flushing the worker */
|
||||
if (i915_request_wait(rq, 0,
|
||||
max(0l, (long)(timeout - jiffies)) + 1) < 0) {
|
||||
pr_err("%s: hanging request %llx:%lld did not complete\n",
|
||||
@ -3426,7 +3426,7 @@ static int live_preempt_timeout(void *arg)
|
||||
cpu_relax();
|
||||
|
||||
saved_timeout = engine->props.preempt_timeout_ms;
|
||||
engine->props.preempt_timeout_ms = 1; /* in ms, -> 1 jiffie */
|
||||
engine->props.preempt_timeout_ms = 1; /* in ms, -> 1 jiffy */
|
||||
|
||||
i915_request_get(rq);
|
||||
i915_request_add(rq);
|
||||
|
@ -110,7 +110,7 @@ void set_timer_ms(struct timer_list *t, unsigned long timeout)
|
||||
* Paranoia to make sure the compiler computes the timeout before
|
||||
* loading 'jiffies' as jiffies is volatile and may be updated in
|
||||
* the background by a timer tick. All to reduce the complexity
|
||||
* of the addition and reduce the risk of losing a jiffie.
|
||||
* of the addition and reduce the risk of losing a jiffy.
|
||||
*/
|
||||
barrier();
|
||||
|
||||
|
@ -279,7 +279,7 @@ v3d_wait_bo_ioctl(struct drm_device *dev, void *data,
|
||||
else
|
||||
args->timeout_ns = 0;
|
||||
|
||||
/* Asked to wait beyond the jiffie/scheduler precision? */
|
||||
/* Asked to wait beyond the jiffy/scheduler precision? */
|
||||
if (ret == -ETIME && args->timeout_ns)
|
||||
ret = -EAGAIN;
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
||||
* - has multiple clocks.
|
||||
* - has no usable clock due to jitter or packet loss (VoIP).
|
||||
* In this case the system's clock is used. The clock resolution depends on
|
||||
* the jiffie resolution.
|
||||
* the jiffy resolution.
|
||||
*
|
||||
* If a member joins a conference:
|
||||
*
|
||||
|
@ -104,7 +104,7 @@ static int orion_mdio_wait_ready(const struct orion_mdio_ops *ops,
|
||||
return 0;
|
||||
} else {
|
||||
/* wait_event_timeout does not guarantee a delay of at
|
||||
* least one whole jiffie, so timeout must be no less
|
||||
* least one whole jiffy, so timeout must be no less
|
||||
* than two.
|
||||
*/
|
||||
timeout = max(usecs_to_jiffies(MVMDIO_SMI_TIMEOUT), 2);
|
||||
|
@ -210,7 +210,7 @@ struct xfs_buf {
|
||||
* success the write is considered to be failed permanently and the
|
||||
* iodone handler will take appropriate action.
|
||||
*
|
||||
* For retry timeouts, we record the jiffie of the first failure. This
|
||||
* For retry timeouts, we record the jiffy of the first failure. This
|
||||
* means that we can change the retry timeout for buffers already under
|
||||
* I/O and thus avoid getting stuck in a retry loop with a long timeout.
|
||||
*
|
||||
|
@ -418,7 +418,7 @@ extern unsigned long preset_lpj;
|
||||
#define NSEC_CONVERSION ((unsigned long)((((u64)1 << NSEC_JIFFIE_SC) +\
|
||||
TICK_NSEC -1) / (u64)TICK_NSEC))
|
||||
/*
|
||||
* The maximum jiffie value is (MAX_INT >> 1). Here we translate that
|
||||
* The maximum jiffy value is (MAX_INT >> 1). Here we translate that
|
||||
* into seconds. The 64-bit case will overflow if we are not careful,
|
||||
* so use the messy SH_DIV macro to do it. Still all constants.
|
||||
*/
|
||||
|
@ -73,7 +73,7 @@ struct tk_read_base {
|
||||
* @overflow_seen: Overflow warning flag (DEBUG_TIMEKEEPING)
|
||||
*
|
||||
* Note: For timespec(64) based interfaces wall_to_monotonic is what
|
||||
* we need to add to xtime (or xtime corrected for sub jiffie times)
|
||||
* we need to add to xtime (or xtime corrected for sub jiffy times)
|
||||
* to get to monotonic time. Monotonic is pegged at zero at system
|
||||
* boot time, so wall_to_monotonic will be negative, however, we will
|
||||
* ALWAYS keep the tv_nsec part positive so we can use the usual
|
||||
|
@ -493,7 +493,7 @@ static u64 __alarm_forward_now(struct alarm *alarm, ktime_t interval, bool throt
|
||||
* promised in the context of posix_timer_fn() never
|
||||
* materialized, but someone should really work on it.
|
||||
*
|
||||
* To prevent DOS fake @now to be 1 jiffie out which keeps
|
||||
* To prevent DOS fake @now to be 1 jiffy out which keeps
|
||||
* the overrun accounting correct but creates an
|
||||
* inconsistency vs. timer_gettime(2).
|
||||
*/
|
||||
|
@ -190,7 +190,7 @@ int clockevents_tick_resume(struct clock_event_device *dev)
|
||||
|
||||
#ifdef CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST
|
||||
|
||||
/* Limit min_delta to a jiffie */
|
||||
/* Limit min_delta to a jiffy */
|
||||
#define MIN_DELTA_LIMIT (NSEC_PER_SEC / HZ)
|
||||
|
||||
/**
|
||||
|
@ -1177,7 +1177,7 @@ static inline ktime_t hrtimer_update_lowres(struct hrtimer *timer, ktime_t tim,
|
||||
/*
|
||||
* CONFIG_TIME_LOW_RES indicates that the system has no way to return
|
||||
* granular time values. For relative timers we add hrtimer_resolution
|
||||
* (i.e. one jiffie) to prevent short timeouts.
|
||||
* (i.e. one jiffy) to prevent short timeouts.
|
||||
*/
|
||||
timer->is_rel = mode & HRTIMER_MODE_REL;
|
||||
if (timer->is_rel)
|
||||
|
@ -339,14 +339,14 @@ static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer)
|
||||
* change to the signal handling code.
|
||||
*
|
||||
* For now let timers with an interval less than a
|
||||
* jiffie expire every jiffie and recheck for a
|
||||
* jiffy expire every jiffy and recheck for a
|
||||
* valid signal handler.
|
||||
*
|
||||
* This avoids interrupt starvation in case of a
|
||||
* very small interval, which would expire the
|
||||
* timer immediately again.
|
||||
*
|
||||
* Moving now ahead of time by one jiffie tricks
|
||||
* Moving now ahead of time by one jiffy tricks
|
||||
* hrtimer_forward() to expire the timer later,
|
||||
* while it still maintains the overrun accuracy
|
||||
* for the price of a slight inconsistency in the
|
||||
|
@ -365,7 +365,7 @@ static unsigned long round_jiffies_common(unsigned long j, int cpu,
|
||||
rem = j % HZ;
|
||||
|
||||
/*
|
||||
* If the target jiffie is just after a whole second (which can happen
|
||||
* If the target jiffy is just after a whole second (which can happen
|
||||
* due to delays of the timer irq, long irq off times etc etc) then
|
||||
* we should round down to the whole second, not up. Use 1/4th second
|
||||
* as cutoff for this rounding as an extreme upper bound for this.
|
||||
@ -1930,7 +1930,7 @@ static void timer_recalc_next_expiry(struct timer_base *base)
|
||||
* bits are zero, we look at the next level as is. If not we
|
||||
* need to advance it by one because that's going to be the
|
||||
* next expiring bucket in that level. base->clk is the next
|
||||
* expiring jiffie. So in case of:
|
||||
* expiring jiffy. So in case of:
|
||||
*
|
||||
* LVL5 LVL4 LVL3 LVL2 LVL1 LVL0
|
||||
* 0 0 0 0 0 0
|
||||
@ -1995,7 +1995,7 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 expires)
|
||||
return basem;
|
||||
|
||||
/*
|
||||
* Round up to the next jiffie. High resolution timers are
|
||||
* Round up to the next jiffy. High resolution timers are
|
||||
* off, so the hrtimers are expired in the tick and we need to
|
||||
* make sure that this tick really expires the timer to avoid
|
||||
* a ping pong of the nohz stop code.
|
||||
@ -2254,7 +2254,7 @@ static inline u64 __get_next_timer_interrupt(unsigned long basej, u64 basem,
|
||||
base_global, &tevt);
|
||||
|
||||
/*
|
||||
* If the next event is only one jiffie ahead there is no need to call
|
||||
* If the next event is only one jiffy ahead there is no need to call
|
||||
* timer migration hierarchy related functions. The value for the next
|
||||
* global timer in @tevt struct equals then KTIME_MAX. This is also
|
||||
* true, when the timer base is idle.
|
||||
@ -2486,11 +2486,11 @@ static void run_local_timers(void)
|
||||
* updated. When this update is missed, this isn't a
|
||||
* problem, as an IPI is executed nevertheless when the CPU
|
||||
* was idle before. When the CPU wasn't idle but the update
|
||||
* is missed, then the timer would expire one jiffie late -
|
||||
* is missed, then the timer would expire one jiffy late -
|
||||
* bad luck.
|
||||
*
|
||||
* Those unlikely corner cases where the worst outcome is only a
|
||||
* one jiffie delay or a superfluous raise of the softirq are
|
||||
* one jiffy delay or a superfluous raise of the softirq are
|
||||
* not that expensive as doing the check always while holding
|
||||
* the lock.
|
||||
*
|
||||
|
@ -97,7 +97,7 @@ config BOOT_PRINTK_DELAY
|
||||
using "boot_delay=N".
|
||||
|
||||
It is likely that you would also need to use "lpj=M" to preset
|
||||
the "loops per jiffie" value.
|
||||
the "loops per jiffy" value.
|
||||
See a previous boot log for the "lpj" value to use for your
|
||||
system, and then set "lpj=M" before setting "boot_delay=N".
|
||||
NOTE: Using this option may adversely affect SMP systems.
|
||||
|
@ -287,7 +287,7 @@ struct batadv_frag_table_entry {
|
||||
/** @lock: lock to protect the list of fragments */
|
||||
spinlock_t lock;
|
||||
|
||||
/** @timestamp: time (jiffie) of last received fragment */
|
||||
/** @timestamp: time (jiffy) of last received fragment */
|
||||
unsigned long timestamp;
|
||||
|
||||
/** @seqno: sequence number of the fragments in the list */
|
||||
|
Loading…
Reference in New Issue
Block a user