arch/arm/mach-shmobile/suspend.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-shmobile/suspend.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-shmobile/suspend.c- Extension
.c- Size
- 897 bytes
- Lines
- 48
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/pm.hlinux/suspend.hlinux/module.hlinux/err.hlinux/cpu.hasm/io.hasm/system_misc.hcommon.h
Detected Declarations
function Copyrightfunction shmobile_suspend_beginfunction shmobile_suspend_endfunction shmobile_suspend_init
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Suspend-to-RAM support code for SH-Mobile ARM
*
* Copyright (C) 2011 Magnus Damm
*/
#include <linux/pm.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/cpu.h>
#include <asm/io.h>
#include <asm/system_misc.h>
#include "common.h"
static int shmobile_suspend_default_enter(suspend_state_t suspend_state)
{
cpu_do_idle();
return 0;
}
static int shmobile_suspend_begin(suspend_state_t state)
{
cpu_idle_poll_ctrl(true);
return 0;
}
static void shmobile_suspend_end(void)
{
cpu_idle_poll_ctrl(false);
}
struct platform_suspend_ops shmobile_suspend_ops = {
.begin = shmobile_suspend_begin,
.end = shmobile_suspend_end,
.enter = shmobile_suspend_default_enter,
.valid = suspend_valid_only_mem,
};
int __init shmobile_suspend_init(void)
{
suspend_set_ops(&shmobile_suspend_ops);
return 0;
}
Annotation
- Immediate include surface: `linux/pm.h`, `linux/suspend.h`, `linux/module.h`, `linux/err.h`, `linux/cpu.h`, `asm/io.h`, `asm/system_misc.h`, `common.h`.
- Detected declarations: `function Copyright`, `function shmobile_suspend_begin`, `function shmobile_suspend_end`, `function shmobile_suspend_init`.
- Atlas domain: Architecture Layer / arch/arm.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.