History

clocksource: Provide clocksource_arch_init()

Architectures have extra archdata in the clocksource, e.g. for VDSO support. There are no sanity checks or general initializations for this available. Add support for that.

Thomas Gleixner committed 8 years ago

Commit d67f34c1 parent 02e42563 files · +11 −0Browse files

Showing the changes to kernel/time (2 of 3 files). Show all

Unified · Split

2 files
  1. kernel/time/Kconfig +4 −0
  2. kernel/time/clocksource.c +2 −0
kernel/time/Kconfig+4−0
@@ -12,6 +12,10 @@ config CLOCKSOURCE_WATCHDOG · 11 unmodified lines
1212 config ARCH_CLOCKSOURCE_DATA
1313 bool
1414
15+# Architecture has extra clocksource init called from registration
16+config ARCH_CLOCKSOURCE_INIT
17+ bool
18+
1519 # Clocksources require validation of the clocksource against the last
1620 # cycle update - x86/TSC misfeature
1721 config CLOCKSOURCE_VALIDATE_LAST_CYCLE
kernel/time/clocksource.c+2−0
@@ -937,6 +937,8 @@ int __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq) · 936 unmodified lines
937937 {
938938 unsigned long flags;
939939
940+ clocksource_arch_init(cs);
941+
940942 /* Initialize mult/shift and max_idle_ns */
941943 __clocksource_update_freq_scale(cs, scale, freq);
942944

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t