[alsa-cvslog] alsa-driver: Add a dummy linux/latency.h for older kernels
Brought to you by:
perex
From: Takashi I. <ti...@su...> - 2006-10-04 15:07:58
|
changeset: 3144:65bf954ea4a453c2460388f8077529eb8c6ff5cb user: tiwai date: Wed Oct 04 17:09:03 2006 +0200 files: configure.in include/latency_compat.h description: Add a dummy linux/latency.h for older kernels Added a dummy linux/latency.h for older kernels. diff -r 0bd340ee604e0c236461c8edb3a4408703482f23 -r 65bf954ea4a453c2460388f8077529eb8c6ff5cb configure.in --- a/configure.in Wed Oct 04 17:08:20 2006 +0200 +++ b/configure.in Wed Oct 04 17:09:03 2006 +0200 @@ -651,6 +651,8 @@ CHECK_KERNEL_HEADER(linux/bitmap.h, [#in CHECK_KERNEL_HEADER(linux/bitmap.h, [#include \"bitmap_compat.h\" ]) CHECK_KERNEL_HEADER(linux/mutex.h, [#include \"mutex_compat.h\" +]) +CHECK_KERNEL_HEADER(linux/latency.h, [#include \"latency_compat.h\" ]) dnl Check for dump_stack diff -r 0bd340ee604e0c236461c8edb3a4408703482f23 -r 65bf954ea4a453c2460388f8077529eb8c6ff5cb include/latency_compat.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/latency_compat.h Wed Oct 04 17:09:03 2006 +0200 @@ -0,0 +1,15 @@ +#ifndef __LATENCY_COMPAT_H +#define __LATENCY_COMPAT_H + +static inline void set_acceptable_latency(char *identifier, int usecs) {} +static inline void modify_acceptable_latency(char *identifier, int usecs) {} +static inline void remove_acceptable_latency(char *identifier) {} +static inline void synchronize_acceptable_latency(void) {} +static inline int system_latency_constraint(void) {return 0;} + +static inline int register_latency_notifier(struct notifier_block * nb) {return 0;} +static inline int unregister_latency_notifier(struct notifier_block * nb) {return 0;} + +#define INFINITE_LATENCY 1000000 + +#endif |