mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
Add some comments.
This commit is contained in:
parent
44d1534122
commit
a6cca5d8a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210404
@ -259,7 +259,7 @@ clock_intr(void *arg)
|
||||
compare_next = count + cycles_per_tick;
|
||||
DPCPU_SET(compare_ticks, compare_next);
|
||||
mips_wr_compare(compare_next);
|
||||
} else
|
||||
} else /* In one-shot mode timer should be stopped after the event. */
|
||||
mips_wr_compare(0xffffffff);
|
||||
|
||||
critical_enter();
|
||||
@ -352,7 +352,7 @@ clock_attach(device_t dev)
|
||||
sc->et.et_quality = 800;
|
||||
sc->et.et_frequency = counter_freq;
|
||||
sc->et.et_min_period.sec = 0;
|
||||
sc->et.et_min_period.frac = 0x00004000LLU << 32;
|
||||
sc->et.et_min_period.frac = 0x00004000LLU << 32; /* To be safe. */
|
||||
sc->et.et_max_period.sec = 0xfffffffeU / sc->et.et_frequency;
|
||||
sc->et.et_max_period.frac =
|
||||
((0xfffffffeLLU << 32) / sc->et.et_frequency) << 32;
|
||||
|
Loading…
Reference in New Issue
Block a user