Revision 74475455 hw/bt-hci.c
b/hw/bt-hci.c | ||
---|---|---|
576 | 576 |
|
577 | 577 |
static void bt_hci_mod_timer_1280ms(QEMUTimer *timer, int period) |
578 | 578 |
{ |
579 |
qemu_mod_timer(timer, qemu_get_clock(vm_clock) + |
|
579 |
qemu_mod_timer(timer, qemu_get_clock_ns(vm_clock) +
|
|
580 | 580 |
muldiv64(period << 7, get_ticks_per_sec(), 100)); |
581 | 581 |
} |
582 | 582 |
|
... | ... | |
657 | 657 |
if (master) { |
658 | 658 |
link->acl_mode = acl_active; |
659 | 659 |
hci->lm.handle[hci->lm.last_handle].acl_mode_timer = |
660 |
qemu_new_timer(vm_clock, bt_hci_mode_tick, link); |
|
660 |
qemu_new_timer_ns(vm_clock, bt_hci_mode_tick, link);
|
|
661 | 661 |
} |
662 | 662 |
} |
663 | 663 |
|
... | ... | |
1084 | 1084 |
|
1085 | 1085 |
bt_hci_event_status(hci, HCI_SUCCESS); |
1086 | 1086 |
|
1087 |
qemu_mod_timer(link->acl_mode_timer, qemu_get_clock(vm_clock) + |
|
1087 |
qemu_mod_timer(link->acl_mode_timer, qemu_get_clock_ns(vm_clock) +
|
|
1088 | 1088 |
muldiv64(interval * 625, get_ticks_per_sec(), 1000000)); |
1089 | 1089 |
bt_hci_lmp_mode_change_master(hci, link->link, mode, interval); |
1090 | 1090 |
|
... | ... | |
2145 | 2145 |
{ |
2146 | 2146 |
struct bt_hci_s *s = qemu_mallocz(sizeof(struct bt_hci_s)); |
2147 | 2147 |
|
2148 |
s->lm.inquiry_done = qemu_new_timer(vm_clock, bt_hci_inquiry_done, s); |
|
2149 |
s->lm.inquiry_next = qemu_new_timer(vm_clock, bt_hci_inquiry_next, s); |
|
2148 |
s->lm.inquiry_done = qemu_new_timer_ns(vm_clock, bt_hci_inquiry_done, s);
|
|
2149 |
s->lm.inquiry_next = qemu_new_timer_ns(vm_clock, bt_hci_inquiry_next, s);
|
|
2150 | 2150 |
s->conn_accept_timer = |
2151 |
qemu_new_timer(vm_clock, bt_hci_conn_accept_timeout, s); |
|
2151 |
qemu_new_timer_ns(vm_clock, bt_hci_conn_accept_timeout, s);
|
|
2152 | 2152 |
|
2153 | 2153 |
s->evt_packet = bt_hci_evt_packet; |
2154 | 2154 |
s->evt_submit = bt_hci_evt_submit; |
Also available in: Unified diff