提交 5f653f75 编写于 作者: D Dan Williams

cxl/core: Rename bus.c to core.c

In preparation for more generic shared functionality across endpoint
consumers of core cxl resources, and platform-firmware producers of
those resources, rename bus.c to core.c. In addition to the central
rendezvous for interleave coordination, the core will also define common
routines like CXL register block mapping.
Acked-by: NBen Widawsky <ben.widawsky@intel.com>
Reviewed-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162096972018.1865304.11079951161445408423.stgit@dwillia2-desk3.amr.corp.intel.comSigned-off-by: NDan Williams <dan.j.williams@intel.com>
上级 8ac75dd6
...@@ -28,10 +28,10 @@ CXL Memory Device ...@@ -28,10 +28,10 @@ CXL Memory Device
.. kernel-doc:: drivers/cxl/mem.c .. kernel-doc:: drivers/cxl/mem.c
:internal: :internal:
CXL Bus CXL Core
------- -------
.. kernel-doc:: drivers/cxl/bus.c .. kernel-doc:: drivers/cxl/core.c
:doc: cxl bus :doc: cxl core
External Interfaces External Interfaces
=================== ===================
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_CXL_BUS) += cxl_bus.o obj-$(CONFIG_CXL_BUS) += cxl_core.o
obj-$(CONFIG_CXL_MEM) += cxl_mem.o obj-$(CONFIG_CXL_MEM) += cxl_mem.o
ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=CXL ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=CXL
cxl_bus-y := bus.o cxl_core-y := core.o
cxl_mem-y := mem.o cxl_mem-y := mem.o
...@@ -4,26 +4,27 @@ ...@@ -4,26 +4,27 @@
#include <linux/module.h> #include <linux/module.h>
/** /**
* DOC: cxl bus * DOC: cxl core
* *
* The CXL bus provides namespace for control devices and a rendezvous * The CXL core provides a sysfs hierarchy for control devices and a rendezvous
* point for cross-device interleave coordination. * point for cross-device interleave coordination through cxl ports.
*/ */
struct bus_type cxl_bus_type = { struct bus_type cxl_bus_type = {
.name = "cxl", .name = "cxl",
}; };
EXPORT_SYMBOL_GPL(cxl_bus_type); EXPORT_SYMBOL_GPL(cxl_bus_type);
static __init int cxl_bus_init(void) static __init int cxl_core_init(void)
{ {
return bus_register(&cxl_bus_type); return bus_register(&cxl_bus_type);
} }
static void cxl_bus_exit(void) static void cxl_core_exit(void)
{ {
bus_unregister(&cxl_bus_type); bus_unregister(&cxl_bus_type);
} }
module_init(cxl_bus_init); module_init(cxl_core_init);
module_exit(cxl_bus_exit); module_exit(cxl_core_exit);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册