aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorKevin Cernekee <kpc.mtd@gmail.com>2009-06-09 13:59:19 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-10 09:50:50 -0400
commitd9dd0887cc5c6df0dbbe5a307284610607eea7ab (patch)
tree1b6dc1bf5e90c6cd49896196abda9369a50ab3b2 /drivers/mtd/ubi/ubi.h
parent6b5c94c6b4e1630a8e1ee7d30383d9396603749f (diff)
UBI: add reboot notifier
Terminate the UBI background thread prior to restarting the system. [Artem: amended comments a little] Signed-off-by: Kevin Cernekee <kpc.mtd@gmail.com> Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 70ce48b95b64..28acd133c997 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -36,9 +36,9 @@
36#include <linux/device.h> 36#include <linux/device.h>
37#include <linux/string.h> 37#include <linux/string.h>
38#include <linux/vmalloc.h> 38#include <linux/vmalloc.h>
39#include <linux/notifier.h>
39#include <linux/mtd/mtd.h> 40#include <linux/mtd/mtd.h>
40#include <linux/mtd/ubi.h> 41#include <linux/mtd/ubi.h>
41#include <linux/notifier.h>
42 42
43#include "ubi-media.h" 43#include "ubi-media.h"
44#include "scan.h" 44#include "scan.h"
@@ -348,6 +348,7 @@ struct ubi_wl_entry;
348 * @bgt_thread: background thread description object 348 * @bgt_thread: background thread description object
349 * @thread_enabled: if the background thread is enabled 349 * @thread_enabled: if the background thread is enabled
350 * @bgt_name: background thread name 350 * @bgt_name: background thread name
351 * @reboot_notifier: notifier to terminate background thread before rebooting
351 * 352 *
352 * @flash_size: underlying MTD device size (in bytes) 353 * @flash_size: underlying MTD device size (in bytes)
353 * @peb_count: count of physical eraseblocks on the MTD device 354 * @peb_count: count of physical eraseblocks on the MTD device
@@ -431,6 +432,7 @@ struct ubi_device {
431 struct task_struct *bgt_thread; 432 struct task_struct *bgt_thread;
432 int thread_enabled; 433 int thread_enabled;
433 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2]; 434 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2];
435 struct notifier_block reboot_notifier;
434 436
435 /* I/O sub-system's stuff */ 437 /* I/O sub-system's stuff */
436 long long flash_size; 438 long long flash_size;