• Home
  • Engineering
  • Training
  • Docs
  • Community
  • Company
  • twitter
  • mastodon
  • linkedin
  • github

Bootlin logo

Elixir Cross Referencer

Open Menu / arch / x86 / include / asm / clock_inlined.h

Projects

  • linux

Versions

  • FIXME
    • FIXME
      • next-20260811
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_CLOCK_INLINED_H
#define _ASM_X86_CLOCK_INLINED_H

#include <asm/tsc.h>

struct clocksource;

static __always_inline u64 arch_inlined_clocksource_read(struct clocksource *cs)
{
	return (u64)rdtsc_ordered();
}

struct clock_event_device;

static __always_inline void
arch_inlined_clockevent_set_next_coupled(u64 cycles, struct clock_event_device *evt)
{
	native_wrmsrq(MSR_IA32_TSC_DEADLINE, cycles);
}

#endif
linux next-20260811 Download file Top powered by Elixir a26ba81