Claudio Fontana | 45e077d | 2020-10-15 16:32:15 +0200 | [diff] [blame] | 1 | /* |
| 2 | * QEMU TCG Single Threaded vCPUs implementation |
| 3 | * |
| 4 | * Copyright 2020 SUSE LLC |
| 5 | * |
| 6 | * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 7 | * See the COPYING file in the top-level directory. |
| 8 | */ |
| 9 | |
| 10 | #ifndef TCG_CPUS_RR_H |
| 11 | #define TCG_CPUS_RR_H |
| 12 | |
| 13 | #define TCG_KICK_PERIOD (NANOSECONDS_PER_SECOND / 10) |
| 14 | |
| 15 | /* Kick all RR vCPUs. */ |
Claudio Fontana | 9e2658d | 2020-10-15 16:32:17 +0200 | [diff] [blame] | 16 | void rr_kick_vcpu_thread(CPUState *unused); |
Claudio Fontana | 45e077d | 2020-10-15 16:32:15 +0200 | [diff] [blame] | 17 | |
Claudio Fontana | 37c2f9a | 2020-10-15 16:32:16 +0200 | [diff] [blame] | 18 | /* start the round robin vcpu thread */ |
| 19 | void rr_start_vcpu_thread(CPUState *cpu); |
Claudio Fontana | 45e077d | 2020-10-15 16:32:15 +0200 | [diff] [blame] | 20 | |
| 21 | #endif /* TCG_CPUS_RR_H */ |