lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 19 Jun 2011 21:12:25 +0200
From:	Arnd Bergmann <arnd@...db.de>
To:	Jonas Bonn <jonas@...thpole.se>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 12/19] OpenRISC: Scheduling/Process management

On Sunday 19 June 2011 13:43:38 Jonas Bonn wrote:

> +#if 0
> +
> +/*
> + * The hlt_counter, disable_hlt and enable_hlt is just here as a hook if
> + * there would ever be a halt sequence (for power save when idle) with
> + * some largish delay when halting or resuming *and* a driver that can't
> + * afford that delay.  The hlt_counter would then be checked before
> + * executing the halt sequence, and the driver marks the unhaltable
> + * region by enable_hlt/disable_hlt.
> + */
> +
> +static int hlt_counter=0;

This can certainly be removed, it's only used by the floppy driver.

> +void machine_restart(void)
> +{
> +	printk("*** MACHINE RESTART ***\n");
> +	__asm__("l.nop 1");
> +}
> +
> +EXPORT_SYMBOL(machine_restart);
> +
> +/*
> + * Similar to machine_power_off, but don't shut off power.  Add code
> + * here to freeze the system for e.g. post-mortem debug purpose when
> + * possible.  This halt has nothing to do with the idle halt.
> + */
> +
> +void machine_halt(void)
> +{
> +	printk("*** MACHINE HALT ***\n");
> +	__asm__("l.nop 1");
> +}
> +
> +EXPORT_SYMBOL(machine_halt);
> +
> +/* If or when software power-off is implemented, add code here.  */
> +
> +void machine_power_off(void)
> +{
> +	printk("*** MACHINE POWER OFF ***\n");
> +	__asm__("l.nop 1");
> +}
> +
> +EXPORT_SYMBOL(machine_power_off);
> +
> +void (*pm_power_off)(void) = machine_power_off;
> +EXPORT_SYMBOL(pm_power_off);

I don't think any of these should be exported.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ