Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28675
b: refs/heads/master
c: 4bd174f
h: refs/heads/master
i:
  28673: ac6d1e7
  28671: 73b9451
v: v3
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Apr 22, 2006
1 parent 3f24d51 commit 831ebf5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e1415c3f7d3ad133edb7ce9ca90641cf0f5fe79
refs/heads/master: 4bd174fe1cca738f53cf8bb9ac3cb327b1f516ed
6 changes: 1 addition & 5 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@

/* keep track of when we need to update the rtc */
time_t last_rtc_update;
extern int piranha_simulator;
#ifdef CONFIG_PPC_ISERIES
unsigned long iSeries_recal_titan = 0;
unsigned long iSeries_recal_tb = 0;
Expand Down Expand Up @@ -1010,10 +1009,7 @@ void __init time_init(void)
tb_to_ns_scale = scale;
tb_to_ns_shift = shift;

#ifdef CONFIG_PPC_ISERIES
if (!piranha_simulator)
#endif
tm = get_boot_time();
tm = get_boot_time();

write_seqlock_irqsave(&xtime_lock, flags);

Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/powerpc/platforms/iseries/mf.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

#include "setup.h"

extern int piranha_simulator;
static int mf_initialized;

/*
Expand Down Expand Up @@ -658,7 +657,7 @@ static void mf_clear_src(void)

void __init mf_display_progress(u16 value)
{
if (piranha_simulator || !mf_initialized)
if (!mf_initialized)
return;

if (0xFFFF == value)
Expand Down Expand Up @@ -1295,9 +1294,6 @@ __initcall(mf_proc_init);
*/
void iSeries_get_rtc_time(struct rtc_time *rtc_tm)
{
if (piranha_simulator)
return;

mf_get_rtc(rtc_tm);
rtc_tm->tm_mon--;
}
Expand All @@ -1316,9 +1312,6 @@ unsigned long iSeries_get_boot_time(void)
{
struct rtc_time tm;

if (piranha_simulator)
return 0;

mf_get_boot_rtc(&tm);
return mktime(tm.tm_year + 1900, tm.tm_mon, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec);
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/platforms/iseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ extern void iSeries_pci_final_fixup(void);
static void iSeries_pci_final_fixup(void) { }
#endif

/* Global Variables */
int piranha_simulator;

extern int rd_size; /* Defined in drivers/block/rd.c */
extern unsigned long embedded_sysmap_start;
extern unsigned long embedded_sysmap_end;
Expand Down Expand Up @@ -340,8 +337,6 @@ static void __init iSeries_init_early(void)
#ifdef CONFIG_SMP
smp_init_iSeries();
#endif
if (itLpNaca.xPirEnvironMode == 0)
piranha_simulator = 1;

/* Associate Lp Event Queue 0 with processor 0 */
HvCallEvent_setLpEventQueueInterruptProc(0, 0);
Expand Down

0 comments on commit 831ebf5

Please sign in to comment.