https://github.com/torvalds/linux
Raw File
Tip revision: d9f8bcbf67a0ee67c8cb0734f003dfe916bb5248 authored by Linus Torvalds on 17 November 2007, 05:16:36 UTC
Linux 2.6.24-rc3
Tip revision: d9f8bcb
latency.h
/*
 * latency.h: Explicit system-wide latency-expectation infrastructure
 *
 * (C) Copyright 2006 Intel Corporation
 * Author: Arjan van de Ven <arjan@linux.intel.com>
 *
 */

#ifndef _INCLUDE_GUARD_LATENCY_H_
#define _INCLUDE_GUARD_LATENCY_H_

#include <linux/notifier.h>

void set_acceptable_latency(char *identifier, int usecs);
void modify_acceptable_latency(char *identifier, int usecs);
void remove_acceptable_latency(char *identifier);
void synchronize_acceptable_latency(void);
int system_latency_constraint(void);

int register_latency_notifier(struct notifier_block * nb);
int unregister_latency_notifier(struct notifier_block * nb);

#define INFINITE_LATENCY 1000000

#endif
back to top