All the mail mirrored from lore.kernel.org
 help / color / mirror / code / Atom feed
f8aa16973318f5339b54e761e22f9db5ca81033b blob 1147 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
/*
 * ARM64 CPU idle arch support
 *
 * Copyright (C) 2014 ARM Ltd.
 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/of.h>
#include <linux/of_device.h>

#include <asm/cpuidle.h>
#include <asm/cpu_ops.h>

int arm_cpuidle_init(unsigned int cpu)
{
	int ret = -EOPNOTSUPP;

	if (cpu_ops[cpu] && cpu_ops[cpu]->cpu_init_idle)
		ret = cpu_ops[cpu]->cpu_init_idle(cpu);

	return ret;
}

/**
 * cpu_suspend() - function to enter a low-power idle state
 * @arg: argument to pass to CPU suspend operations
 *
 * Return: 0 on success, -EOPNOTSUPP if CPU suspend hook not initialized, CPU
 * operations back-end error code otherwise.
 */
int cpu_suspend(unsigned long arg)
{
	int cpu = smp_processor_id();

	/*
	 * If cpu_ops have not been registered or suspend
	 * has not been initialized, cpu_suspend call fails early.
	 */
	if (!cpu_ops[cpu] || !cpu_ops[cpu]->cpu_suspend)
		return -EOPNOTSUPP;
	return cpu_ops[cpu]->cpu_suspend(arg);
}
debug log:

solving f8aa16973318 ...
retrying f8aa16973318 as f8aa1697331
retrying f8aa1697331 as f8aa169733
retrying f8aa169733 as f8aa16973
retrying f8aa16973 as f8aa1697
retrying f8aa1697 as f8aa169
found f8aa169 in https://yhbt.net/lore/all/1431020084-5875-1-git-send-email-lorenzo.pieralisi@arm.com/ ||
	https://yhbt.net/lore/all/1431522769-11276-2-git-send-email-lorenzo.pieralisi@arm.com/
found a78143a in https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1426851841-2072-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1426704372-20406-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1427274436-21916-4-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1426704372-20406-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1427274436-21916-4-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1426851841-2072-5-git-send-email-daniel.lezcano@linaro.org/ ||
	https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/
found 5c08966 in https://yhbt.net/lore/all/1422297224-27834-2-git-send-email-lorenzo.pieralisi@arm.com/
found 19d17f5 in https://yhbt.net/lore/all/1409938498-17984-4-git-send-email-lorenzo.pieralisi@arm.com/ ||
	https://yhbt.net/lore/all/1409585324-3678-5-git-send-email-lorenzo.pieralisi@arm.com/ ||
	https://yhbt.net/lore/all/1409938498-17984-4-git-send-email-lorenzo.pieralisi@arm.com/ ||
	https://yhbt.net/lore/all/1409585324-3678-5-git-send-email-lorenzo.pieralisi@arm.com/

applying [1/16] https://yhbt.net/lore/all/1409938498-17984-4-git-send-email-lorenzo.pieralisi@arm.com/
diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c
new file mode 100644
index 0000000..19d17f5

Checking patch arch/arm64/kernel/cpuidle.c...
Applied patch arch/arm64/kernel/cpuidle.c cleanly.

skipping https://yhbt.net/lore/all/1409585324-3678-5-git-send-email-lorenzo.pieralisi@arm.com/ for 19d17f5
skipping https://yhbt.net/lore/all/1409938498-17984-4-git-send-email-lorenzo.pieralisi@arm.com/ for 19d17f5
skipping https://yhbt.net/lore/all/1409585324-3678-5-git-send-email-lorenzo.pieralisi@arm.com/ for 19d17f5
index at:
100644 19d17f51db37a798c797b125795844b7a5d99e92	arch/arm64/kernel/cpuidle.c

applying [2/16] https://yhbt.net/lore/all/1422297224-27834-2-git-send-email-lorenzo.pieralisi@arm.com/
diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c
index 19d17f5..5c08966 100644


applying [3/16] https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/
diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c
index 5c08966..a78143a 100644

Checking patch arch/arm64/kernel/cpuidle.c...
Applied patch arch/arm64/kernel/cpuidle.c cleanly.
Checking patch arch/arm64/kernel/cpuidle.c...
Applied patch arch/arm64/kernel/cpuidle.c cleanly.

skipping https://yhbt.net/lore/all/1426851841-2072-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1426704372-20406-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1427274436-21916-4-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1426704372-20406-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1427274436-21916-4-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1426851841-2072-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
skipping https://yhbt.net/lore/all/1425385777-14766-5-git-send-email-daniel.lezcano@linaro.org/ for a78143a
index at:
100644 a78143a5c99ffb2c9a7ae69267ef3c7f3256c024	arch/arm64/kernel/cpuidle.c

applying [4/16] https://yhbt.net/lore/all/1431020084-5875-1-git-send-email-lorenzo.pieralisi@arm.com/
diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c
index a78143a..f8aa169 100644

Checking patch arch/arm64/kernel/cpuidle.c...
Applied patch arch/arm64/kernel/cpuidle.c cleanly.

skipping https://yhbt.net/lore/all/1431522769-11276-2-git-send-email-lorenzo.pieralisi@arm.com/ for f8aa169
index at:
100644 f8aa16973318f5339b54e761e22f9db5ca81033b	arch/arm64/kernel/cpuidle.c

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.