Skip to content

Commit

Permalink
[POWERPC] PS3: Use the HVs storage device notification mechanism prop…
Browse files Browse the repository at this point in the history
…erly

The PS3 hypervisor has a storage device notification mechanism to wait
until a storage device is ready.  Unfortunately the storage device
probing code used this mechanism in an incorrect way, needing a
polling loop and handling of devices that are not yet ready.

This change corrects this by:
  - First waiting for the reception of an asynchronous notification
    that a new storage device became ready,
  - Then looking up the storage device in the device repository.

On shutdown, the storage probe thread is stopped and the storage
notification device is closed using a reboot notifier.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mackerras committed Jan 25, 2008
1 parent e06bcf3 commit b4cb294
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 234 deletions.
Loading

0 comments on commit b4cb294

Please sign in to comment.