time.c (c900529f3d9161bfde5cca0754f83b4d3c3e0220) time.c (7723bfe6f90326ebc139d25f779b369bfff9c8e0)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 *
5 * This file contains the interface functions for the various time related
6 * system calls: time, stime, gettimeofday, settimeofday, adjtime
7 *
8 * Modification history:

--- 544 unchanged lines hidden (view full) ---

553 * - 'too large' values [that would result in larger than
554 * MAX_JIFFY_OFFSET values] mean 'infinite timeout' too.
555 *
556 * - all other values are converted to jiffies by either multiplying
557 * the input value by a factor or dividing it with a factor and
558 * handling any 32-bit overflows.
559 * for the details see __msecs_to_jiffies()
560 *
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 *
5 * This file contains the interface functions for the various time related
6 * system calls: time, stime, gettimeofday, settimeofday, adjtime
7 *
8 * Modification history:

--- 544 unchanged lines hidden (view full) ---

553 * - 'too large' values [that would result in larger than
554 * MAX_JIFFY_OFFSET values] mean 'infinite timeout' too.
555 *
556 * - all other values are converted to jiffies by either multiplying
557 * the input value by a factor or dividing it with a factor and
558 * handling any 32-bit overflows.
559 * for the details see __msecs_to_jiffies()
560 *
561 * __msecs_to_jiffies() checks for the passed in value being a constant
561 * msecs_to_jiffies() checks for the passed in value being a constant
562 * via __builtin_constant_p() allowing gcc to eliminate most of the
563 * code, __msecs_to_jiffies() is called if the value passed does not
564 * allow constant folding and the actual conversion must be done at
565 * runtime.
566 * The _msecs_to_jiffies helpers are the HZ dependent conversion
567 * routines found in include/linux/jiffies.h
568 *
569 * Return: jiffies value

--- 487 unchanged lines hidden ---
562 * via __builtin_constant_p() allowing gcc to eliminate most of the
563 * code, __msecs_to_jiffies() is called if the value passed does not
564 * allow constant folding and the actual conversion must be done at
565 * runtime.
566 * The _msecs_to_jiffies helpers are the HZ dependent conversion
567 * routines found in include/linux/jiffies.h
568 *
569 * Return: jiffies value

--- 487 unchanged lines hidden ---