diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-01-22 21:12:38 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-01-22 21:12:38 +0100 |
commit | 9278b94623bbadcf64c1e3b6feb5f770379e18aa (patch) | |
tree | f8f0d80bab4f749ef978a7965b3454ceac463bee /sys/src/9/pc/apic.c | |
parent | 885d41dd7b87c41cb618140d50dd23501b6d4279 (diff) |
pc/pc64: get rid of timerset(0) case, was used with "i8253set off" ctl
Diffstat (limited to 'sys/src/9/pc/apic.c')
-rw-r--r-- | sys/src/9/pc/apic.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/src/9/pc/apic.c b/sys/src/9/pc/apic.c index f27adb81e..30ca0b50a 100644 --- a/sys/src/9/pc/apic.c +++ b/sys/src/9/pc/apic.c @@ -396,15 +396,12 @@ lapictimerset(uvlong next) Apictimer *a; a = &lapictimer[m->machno]; - period = a->max; - if(next != 0){ - period = next - fastticks(nil); - period /= a->div; - if(period < a->min) - period = a->min; - else if(period > a->max - a->min) - period = a->max; - } + period = next - fastticks(nil); + period /= a->div; + if(period < a->min) + period = a->min; + else if(period > a->max - a->min) + period = a->max; lapicw(LapicTICR, period); } |