Skip to content

Commit

Permalink
Fix building on 6.12 due to missing definition of rdtsc().
Browse files Browse the repository at this point in the history
Something else must have been indirectly pulling in asm/msr.h.
Explicitly add it to the includes.

This should be fine for kernels newer than 3.x. 3.x and earlier
never had a rdtsc() function by the looks of it, so I'm not sure
they would even build today. (That could be a separate fix if
needed in the future.)

Fixes #4.
  • Loading branch information
voutilad committed Nov 21, 2024
1 parent 9db6f6c commit 0a92f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pvclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
#include <linux/sched.h>
#include <linux/sched/clock.h>
#include <asm/msr.h>

#include "pvclock.h"

Expand Down

0 comments on commit 0a92f3e

Please sign in to comment.