Skip to content

Commit 54ca02b

Browse files
authored
Merge pull request #21 from zhang-rui/staging
intel-lpmd 0.0.3 release
2 parents 5bea5b0 + 9e4e302 commit 54ca02b

File tree

11 files changed

+628
-68
lines changed

11 files changed

+628
-68
lines changed

Makefile.am

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ intel_lpmd_LDADD = \
3939
$(SYSTEMD_LIBS)
4040

4141
BUILT_SOURCES = \
42-
intel_lpmd_dbus_interface.h
42+
intel_lpmd_dbus_interface.h \
43+
lpmd-resource.c
4344

4445
intel_lpmd_SOURCES = \
4546
src/lpmd_main.c \
@@ -51,12 +52,17 @@ intel_lpmd_SOURCES = \
5152
src/lpmd_hfi.c \
5253
src/lpmd_irq.c \
5354
src/lpmd_socket.c \
54-
src/lpmd_util.c
55+
src/lpmd_util.c \
56+
lpmd-resource.c
5557

5658
man8_MANS = man/intel_lpmd.8
5759
man5_MANS = man/intel_lpmd_config.xml.5
5860

5961
intel_lpmd_dbus_interface.h: $(top_srcdir)/src/intel_lpmd_dbus_interface.xml
6062
$(AM_V_GEN) dbus-binding-tool --prefix=dbus_interface --mode=glib-server --output=$@ $<
6163

64+
lpmd-resource.c: $(top_srcdir)/lpmd-resource.gresource.xml
65+
$(AM_V_GEN) glib-compile-resources --generate-source lpmd-resource.gresource.xml
66+
67+
6268
CLEANFILES = $(BUILT_SOURCES)

configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AC_PREREQ(1.0)
22

33
m4_define([lpmd_major_version], [0])
4-
m4_define([lpmd_minor_version], [0.2])
4+
m4_define([lpmd_minor_version], [0.3])
55
m4_define([lpmd_version],
66
[lpmd_major_version.lpmd_minor_version])
77

@@ -96,4 +96,10 @@ AS_IF([test "x$enable_werror" != "xno"], [CFLAGS="$CFLAGS -Werror"])
9696
AC_CONFIG_FILES([Makefile
9797
data/Makefile])
9898

99+
AC_ARG_ENABLE(gdbus,
100+
[AS_HELP_STRING([--disable-gdbus],
101+
[Switch DBus backend to glib-dbus. (Default: GDBus)])],
102+
[],
103+
[AC_DEFINE([GDBUS], [1], [Enable GDBus support])])
104+
99105
AC_OUTPUT

lpmd-resource.gresource.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<gresources>
3+
<gresource prefix="/org/freedesktop/intel_lpmd">
4+
<file preprocess="xml-stripblanks">src/intel_lpmd_dbus_interface.xml</file>
5+
</gresource>
6+
</gresources>

src/lpmd.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ int get_util_exit_hyst(void);
181181
void set_ignore_itmt(void);
182182

183183
int process_lpm(enum lpm_command cmd);
184-
int enter_lpm(enum lpm_command cmd);
185-
int exit_lpm(enum lpm_command cmd);
184+
int process_lpm_unlock(enum lpm_command cmd);
185+
int freeze_lpm(void);
186+
int restore_lpm(void);
186187

187188
void lpmd_terminate(void);
188189
void lpmd_force_on(void);
@@ -221,6 +222,8 @@ int has_cpus(enum cpumask_idx idx);
221222
int add_cpu(int cpu, enum cpumask_idx idx);
222223
void reset_cpus(enum cpumask_idx idx);
223224
int set_lpm_cpus(enum cpumask_idx new);
225+
int uevent_init(void);
226+
int check_cpu_hotplug(void);
224227

225228
/* cpu.c : APIs for SUV mode support */
226229
int process_suv_mode(enum lpm_command cmd);

0 commit comments

Comments
 (0)