round_jiffies_relative

Langue: en

Autres versions - même langue

Version: June 2009 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)

NAME

round_jiffies_relative - function to round jiffies to a full second

SYNOPSIS

unsigned long round_jiffies_relative(unsigned long j);

ARGUMENTS

j

the time in (relative) jiffies that should be rounded

DESCRIPTION

round_jiffies_relative rounds a time delta 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 return value is the rounded version of the j parameter.