Re: widening ticks
- In reply to: Warner Losh : "Re: widening ticks"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Jan 2025 22:40:39 UTC
On Sat, Jan 11, 2025 at 01:12:24PM -0700, Warner Losh wrote: > Why not have jiffiesjust be an alias for tickl at the assembler level, then > just have extern unsigned long jiffies; so the types match and we don't > have fragile macros? At the assembler level, long and unsigned long are the > sane for object definition. We certainly could. I guess Linux code which does something like print("%lu\n", jiffies); will be incomatible otherwise. Aside from that, I'm not sure if any code would be affected by the difference in practice, but it's easy to add an alias.