diff options
| author | James Morris <[email protected]> | 2006-12-22 01:04:55 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-12-22 08:55:45 -0800 |
| commit | 5aacf0ca4128fdeadf91c0ac50271841b643d1fd (patch) | |
| tree | b951292c844b53d8be8c315419a12c86463f6b7c /include/linux/debugobjects.h | |
| parent | 5f2a105d5e33a038a717995d2738434f9c25aed2 (diff) | |
[PATCH] KVM: add valid_vcpu() helper
Consolidate the logic for checking whether a vcpu index is valid. Also, use
likely(), as a valid value should be the overwhelmingly common case.
Signed-off-by: James Morris <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions