__round_jiffies man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

__ROUND_JIFFIES(9)		 Driver Basics		    __ROUND_JIFFIES(9)

NAME
       __round_jiffies - function to round jiffies to a full second

SYNOPSIS
       unsigned long __round_jiffies(unsigned long j, int cpu);

ARGUMENTS
       j
	   the time in (absolute) jiffies that should be rounded

       cpu
	   the processor number on which the timeout will happen

DESCRIPTION
       __round_jiffies rounds an absolute time in the future (in jiffies) up
       or down to (approximately) full seconds. This is useful for timers for
       which the exact time they fire does not matter too much, as long as
       they fire approximately every X seconds.

       By rounding these timers to whole seconds, all such timers will fire at
       the same time, rather than at various times spread out. The goal of
       this is to have the CPU wake up less, which saves power.

       The exact rounding is skewed for each processor to avoid all processors
       firing at the exact same time, which could lead to lock contention or
       spurious cache line bouncing.

       The return value is the rounded version of the j parameter.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013		    __ROUND_JIFFIES(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net