Re: [PATCH] hpet: factor timer allocate from open

From: Magnus Lynch
Date: Wed Mar 03 2010 - 04:07:33 EST


On Mon, Mar 1, 2010 at 12:59 PM, john stultz <johnstul@xxxxxxxxxx> wrote:
> Yes, CLOCK_MONOTONIC_RAW was added specifically to create a hardware
> agnostic interface that provided a 1:1 ratio to the hardware cycle
> counter used by the timekeeping core. No NTP corrections or slewing
> are applied and it isn't affected by settimeofday calls.
>
> Let me know if you run into any trouble with it.
> thanks

Actually I did run into trouble. CLOCK_MONOTONIC_RAW is defined in
linux/time.h and including that creates a lot of redefinition
conflicts with time.h. I see the linux/ includes aren't intended for
user space code.

Is this clockid meant to be of use to user space code and if so how
would one include the definition successfully? time.h is virtually
impossible to not have included if you're using most anything.
--
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/