Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdb04527 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] kill include/linux/platform.h, default_idle() cleanup



include/linux/platform.h contained nothing that was actually used except
the default_idle() prototype, and is therefore removed by this patch.

This patch does the following with the platform specific default_idle()
functions on different architectures:
- remove the unused function:
  - parisc
  - sparc64
- make the needlessly global function static:
  - arm
  - h8300
  - m68k
  - m68knommu
  - s390
  - v850
  - x86_64
- add a prototype in asm/system.h:
  - cris
  - i386
  - ia64

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarPatrick Mochel <mochel@digitalimplant.org>
Acked-by: default avatarKyle McMartin <kyle@parisc-linux.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 008accbb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@
#include <asm/pgtable.h>
#include <asm/uaccess.h>
#include <asm/irq.h>
#include <asm/system.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/fs_struct.h>
@@ -194,8 +195,6 @@ EXPORT_SYMBOL(enable_hlt);
 */
void (*pm_idle)(void);

extern void default_idle(void);

/*
 * The idle thread. There's no useful work to be
 * done, so just try to conserve power and have a
+2 −2
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ asmlinkage void ret_from_fork(void);
 * The idle loop on an H8/300..
 */
#if !defined(CONFIG_H8300H_SIM) && !defined(CONFIG_H8S_SIM)
void default_idle(void)
static void default_idle(void)
{
	local_irq_disable();
	if (!need_resched()) {
@@ -65,7 +65,7 @@ void default_idle(void)
		local_irq_enable();
}
#else
void default_idle(void)
static void default_idle(void)
{
	cpu_relax();
}
+0 −2
Original line number Diff line number Diff line
@@ -824,8 +824,6 @@ static void apm_do_busy(void)

static void (*original_pm_idle)(void);

extern void default_idle(void);

/**
 * apm_cpu_idle		-	cpu idling for APM capable Linux
 *
+0 −1
Original line number Diff line number Diff line
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/delay.h>
#include <linux/platform.h>

#include <asm/io.h>
#include "piix4.h"
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@
#include <linux/serial_core.h>
#include <linux/efi.h>
#include <linux/initrd.h>
#include <linux/platform.h>
#include <linux/pm.h>
#include <linux/cpufreq.h>

Loading