Re: [PATCH 2/3] lockmeter: lockmeter fix for generic_read_trylock

From: Zwane Mwaikambo
Date: Thu Sep 16 2004 - 18:36:32 EST


On Thu, 16 Sep 2004, Ray Bryant wrote:

> Update lockmeter.c with generic_raw_read_trylock fix.
>
> + * Generic declaration of the raw read_trylock() function,
> + * architectures are supposed to optimize this:
> + */
> +int __lockfunc generic_raw_read_trylock(rwlock_t *lock)
> +{
> + _metered_read_lock(lock, __builtin_return_address(0));
> + return 1;
> +}

What's really going on here? I'm slightly confused by the
_metered_read_lock usage.

Thanks,
Zwane

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/