mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 16:29:38 +00:00
Don't panic when a valid divisor of 1 has been requested.
Obtained from: NetApp
This commit is contained in:
parent
f82d0672c7
commit
117e8f378e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249174
|
@ -128,6 +128,8 @@ static int
|
|||
vlapic_timer_divisor(uint32_t dcr)
|
||||
{
|
||||
switch (dcr & 0xB) {
|
||||
case APIC_TDCR_1:
|
||||
return (1);
|
||||
case APIC_TDCR_2:
|
||||
return (2);
|
||||
case APIC_TDCR_4:
|
||||
|
|
Loading…
Reference in a new issue