Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
cpu: Prepare Socket container type
Signed-off-by: Andreas Färber <afaerber@suse.de>
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| * CPU socket abstraction | ||
| * | ||
| * Copyright (c) 2013-2014 SUSE LINUX Products GmbH | ||
| * Copyright (c) 2015 SUSE Linux GmbH | ||
| */ | ||
|
|
||
| #include "hw/cpu/socket.h" | ||
|
|
||
| static const TypeInfo cpu_socket_type_info = { | ||
| .name = TYPE_CPU_SOCKET, | ||
| .parent = TYPE_DEVICE, | ||
| .abstract = true, | ||
| }; | ||
|
|
||
| static void cpu_socket_register_types(void) | ||
| { | ||
| type_register_static(&cpu_socket_type_info); | ||
| } | ||
|
|
||
| type_init(cpu_socket_register_types) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| * CPU socket abstraction | ||
| * | ||
| * Copyright (c) 2013-2014 SUSE LINUX Products GmbH | ||
| * Copyright (c) 2015 SUSE Linux GmbH | ||
| */ | ||
| #ifndef HW_CPU_SOCKET_H | ||
| #define HW_CPU_SOCKET_H | ||
|
|
||
| #include "hw/qdev.h" | ||
|
|
||
| #define TYPE_CPU_SOCKET "cpu-socket" | ||
|
|
||
| #endif |